- 博客(14)
- 资源 (48)
- 收藏
- 关注
原创 UIModalPresentationFormSheet 改变加变大小
[self presentViewController:nav animated:YES completion:nil]; // 改变弹出界面大小——iPad nav.view.superview.height -= 200;
2014-06-27 15:40:43
1694
原创 ASIDownloadCache缓存例子
/* ASIUseDefaultCachePolicy 这是一个默认的缓存策略“ASIAskServerIfModifiedWhenStaleCachePolicy”,这个很明白,见名知意(它不能与其它策略组合使用) ASIDoNotReadFromCacheCachePolicy 所读数据不使用缓存
2013-08-27 16:53:00
1178
原创 iPad UIModalPresentationFormSheet 键盘不隐藏
UIModalPresentationFormSheet 键盘不隐藏在iPad中使用UINavigationController,UINavigationController的modalPresentationStyle为UIModalPresentationFormSheet时,弹出键盘,调用resignFirstrRsponder后键盘不隐藏。新建Category,重写
2013-04-18 12:54:35
895
原创 根据字符 删除 可变数组、字符串 中的信息
// 从父字符串中删除子字符串 NSMutableString *sourceString = [NSMutableString stringWithString:@"abcdefghijklmn"]; NSString *delStrFromStr = @"adef"; NSLog(@"sourceString %@", sourceString); i
2011-11-22 12:08:23
386
原创 缩放图片 双击 双指捏合
.h文件#import@interface ScrollPhotoViewController : UIViewController { UIImage *image; IBOutlet UIImageView *imageView; IBOutlet UIScrollView *scroll;}@property (nonatomic, retain) UII
2011-11-22 10:42:40
2226
原创 获取文件路径
Documents路径==#define kFilename@"data.plist" // 文件名- (NSString *)dataFilePath{ NSArray *paths =NSSearchPathForDirectoriesInDomains( NSDocumentDirecto
2011-11-22 10:40:34
333
原创 压缩 缩放 图片
图片的一些压缩处理来自iphone4开发基础教程18-Camerastatic UIImage*shrinkImage(UIImage *original, CGSize size) { CGFloat scale = [UIScreen mainScreen].scale; CGColorSpaceRef colorSpace =CGColorSpaceCreateDev
2011-11-22 10:38:22
438
原创 字符串 去除 空格和换行符
NSString *str = @" 啊啊啊啊啊啊沙发\n\n";NSString *trimStr = [str stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
2011-11-22 10:36:42
1135
原创 mac下 framework 路径
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/System/Library/Frameworks/其中的iPhoneOS2.2.1.sdk改为自己的
2011-11-22 10:35:37
3049
原创 iPhone TextField 邮箱验证
NSString*emailRegE=@"[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?";// Use NSPredica
2011-11-22 10:34:20
558
原创 获取手机唯一标识码
看到获取UDID,在IOS5.0已经过时了,原文说明------------------------------------------------------------------------------------------------------------Deprecated in iOS 5.0uniqueIdentifierAn alphanumeric str
2011-11-22 10:32:56
1543
原创 UIView 圆角 边框
导入头文件 #import 添加代码view为要设置的button、imageview、view等等 // 边框 view.layer.borderColor = [[UIColor lightGrayColor] CGColor]; view.layer.borderWidth = 1; // 圆角 view.laye
2011-11-22 10:30:59
647
原创 获取IOS设备字体
代码: for (NSString *family in [UIFont familyNames]) { NSLog(@"%@", family); for (NSString *font in [UIFont fontNamesForFamilyName:family]){ NSLog(@"\t%@", font); }
2011-11-22 10:29:43
583
原创 本人的IOS 学习链接
Apple苹果开发者登录页面http://developer.apple.com/ios/manage/overview/index.actionIOS开发者http://developer.apple.com/ios苹果iTunes Connecthttps://itunesconnect.apple.com/苹果论坛https://devforums.apple.com/commu
2011-11-22 10:18:33
726
Objective-C for Absolute Beginners: iPhone, iPad, and Mac Programming Made Easy
2011-05-04
Learn iPhone and iPad cocos2d Game Development
2011-05-04
Enterprise iPhone and iPad Administrator’s Guide
2011-05-04
Beginning iPad Application development
2011-05-04
Wiley - iPhone SDK 3 Programming (2009).pdf
2011-04-19
Objective-C 中文手册(Objective-C Beginner's Guide)
2011-04-06
Memory_Management_Programming_Guide_for_Cocoa.pdf 英文版
2011-04-01
iPhone 开发实战 目录
2011-03-30
CocoaFundamentals.pdf
2011-02-09
Programming in Objective-C 2.0(Objective-C 2.0编程) 英文版
2011-01-30
Objective-C 培训教程
2011-01-30
Objective-C 2.0程序设计(原书第2版) .(美)Stephen.G.Kochan.扫描版.part2
2011-01-30
Objective-C 2.0程序设计(原书第2版) .(美)Stephen.G.Kochan.扫描版.part1
2011-01-30
Objective-C 入门指南 中文
2011-01-30
iphone SDK 3 开发快速上手 中文
2011-01-30
iPhone Human Interface Guidelines(iPhone 人机交互指南) 英文版
2011-08-18
RarMachine_464.zip
2011-07-04
BetterZip-2.0.1.zip
2011-07-04
Google Android SDK开发范例大全_源码.rar
2011-06-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人