
iPhone应用开发
Weever
哈哈哈哈
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
获取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 · 601 阅读 · 0 评论 -
ASIDownloadCache缓存例子
/* ASIUseDefaultCachePolicy 这是一个默认的缓存策略“ASIAskServerIfModifiedWhenStaleCachePolicy”,这个很明白,见名知意(它不能与其它策略组合使用) ASIDoNotReadFromCacheCachePolicy 所读数据不使用缓存原创 2013-08-27 16:53:00 · 1211 阅读 · 1 评论 -
iPad UIModalPresentationFormSheet 键盘不隐藏
UIModalPresentationFormSheet 键盘不隐藏在iPad中使用UINavigationController,UINavigationController的modalPresentationStyle为UIModalPresentationFormSheet时,弹出键盘,调用resignFirstrRsponder后键盘不隐藏。新建Category,重写原创 2013-04-18 12:54:35 · 922 阅读 · 0 评论 -
获取文件路径
Documents路径==#define kFilename@"data.plist" // 文件名- (NSString *)dataFilePath{ NSArray *paths =NSSearchPathForDirectoriesInDomains( NSDocumentDirecto原创 2011-11-22 10:40:34 · 344 阅读 · 0 评论 -
缩放图片 双击 双指捏合
.h文件#import@interface ScrollPhotoViewController : UIViewController { UIImage *image; IBOutlet UIImageView *imageView; IBOutlet UIScrollView *scroll;}@property (nonatomic, retain) UII原创 2011-11-22 10:42:40 · 2252 阅读 · 0 评论 -
压缩 缩放 图片
图片的一些压缩处理来自iphone4开发基础教程18-Camerastatic UIImage*shrinkImage(UIImage *original, CGSize size) { CGFloat scale = [UIScreen mainScreen].scale; CGColorSpaceRef colorSpace =CGColorSpaceCreateDev原创 2011-11-22 10:38:22 · 457 阅读 · 0 评论 -
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 · 586 阅读 · 0 评论 -
UIView 圆角 边框
导入头文件 #import 添加代码view为要设置的button、imageview、view等等 // 边框 view.layer.borderColor = [[UIColor lightGrayColor] CGColor]; view.layer.borderWidth = 1; // 圆角 view.laye原创 2011-11-22 10:30:59 · 660 阅读 · 0 评论 -
本人的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 · 751 阅读 · 0 评论 -
根据字符 删除 可变数组、字符串 中的信息
// 从父字符串中删除子字符串 NSMutableString *sourceString = [NSMutableString stringWithString:@"abcdefghijklmn"]; NSString *delStrFromStr = @"adef"; NSLog(@"sourceString %@", sourceString); i原创 2011-11-22 12:08:23 · 421 阅读 · 0 评论 -
字符串 去除 空格和换行符
NSString *str = @" 啊啊啊啊啊啊沙发\n\n";NSString *trimStr = [str stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];原创 2011-11-22 10:36:42 · 1173 阅读 · 0 评论 -
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 · 3090 阅读 · 0 评论 -
获取手机唯一标识码
看到获取UDID,在IOS5.0已经过时了,原文说明------------------------------------------------------------------------------------------------------------Deprecated in iOS 5.0uniqueIdentifierAn alphanumeric str原创 2011-11-22 10:32:56 · 1565 阅读 · 0 评论 -
UIModalPresentationFormSheet 改变加变大小
[self presentViewController:nav animated:YES completion:nil]; // 改变弹出界面大小——iPad nav.view.superview.height -= 200;原创 2014-06-27 15:40:43 · 1736 阅读 · 0 评论