2016年7月18日

摘要: 在后面加 -fno-objc-arc 阅读全文
posted @ 2016-07-18 17:26 摩羯小伟 阅读(94) 评论(0) 推荐(0) 编辑

2016年7月8日

摘要: 阅读全文
posted @ 2016-07-08 14:27 摩羯小伟 阅读(93) 评论(0) 推荐(0) 编辑

2016年7月7日

摘要: if (propertyValue==nil||propertyValue==[NSNull null]||propertyValue==NULL) { //从@encode分离类型信息 NSArray* attrArr = [attrNameStr componentsSeparatedByStr 阅读全文
posted @ 2016-07-07 19:38 摩羯小伟 阅读(277) 评论(0) 推荐(0) 编辑

2016年6月22日

摘要: __unsafe_unretained typeof(self) fself = self;//代码块里面不能有self的话就转换成这个 阅读全文
posted @ 2016-06-22 12:11 摩羯小伟 阅读(92) 评论(0) 推荐(0) 编辑

2016年6月16日

摘要: 系统状态栏改为白色:在Supporting Files文件的info.plist文件中添加 新的key,名字为View controller-based status bar appearance,并将其值设置为NO。 设置导航栏默认颜色 [[UINavigationBar appearance] 阅读全文
posted @ 2016-06-16 15:25 摩羯小伟 阅读(95) 评论(0) 推荐(0) 编辑

2016年5月7日

摘要: 1.打开数据库 #import "ViewController.h" #import "FMDB.h" @interface ViewController () @property (nonatomic, strong) FMDatabase *db; @end @implementation Vi 阅读全文
posted @ 2016-05-07 09:13 摩羯小伟 阅读(110) 评论(0) 推荐(0) 编辑

2016年4月11日

摘要: UIImage* image=[UIImage imageWithData:data]; NSData *data1 = UIImageJPEGRepresentation(image, 0.3); 为View加阴影 view.layer.masksToBounds = NO; view.layer 阅读全文
posted @ 2016-04-11 16:05 摩羯小伟 阅读(305) 评论(0) 推荐(0) 编辑

2015年12月16日

摘要: Prefix Header 中填入绝对路径//PCH 里面加入这个写代码#ifndef TARGET_OS_IOS#pragma mark ---------- for AFNetwork start --------#ifndef TARGET_OS_IOS#define TARGET_OS_I... 阅读全文
posted @ 2015-12-16 10:51 摩羯小伟 阅读(268) 评论(0) 推荐(0) 编辑
摘要: #import typedef void (^MyBlock)(NSString*);@interface SecondViewController : UIViewController@property (retain,nonatomic)UITextField* myTextField;@pro... 阅读全文
posted @ 2015-12-16 10:33 摩羯小伟 阅读(195) 评论(0) 推荐(0) 编辑
摘要: //进度条#import "ViewController.h"@interface ViewController (){ UIImageView* _animaImageV;}@end@implementation ViewController- (void)viewDidLoad { ... 阅读全文
posted @ 2015-12-16 10:27 摩羯小伟 阅读(410) 评论(0) 推荐(0) 编辑

导航