摘要:
1、用法1 传值B页面向A页面反向传值在B.h中 声明一个block属性@property(nonatomic,copy)void (^myBlock)(NSString *t);在b.m中- (IBAction)button:(id)sender { self.myBlock(@"fdslfjds...
阅读全文
posted @ 2015-10-09 08:50
火星的蝈蝈
阅读(174)
推荐(0)
摘要:
http://blog.sina.com.cn/s/blog_6d64a8df01015m6w.html
阅读全文
posted @ 2015-09-23 11:46
火星的蝈蝈
阅读(171)
推荐(0)
摘要:
远程推送,在前台和后台时进入时 方法为 -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo{在完全退出时走得方法为- (BOOL)applicati...
阅读全文
posted @ 2015-09-18 11:37
火星的蝈蝈
阅读(182)
推荐(0)
摘要:
参考文章 http://blog.csdn.net/xn4545945/article/details/37919697
阅读全文
posted @ 2015-09-14 15:19
火星的蝈蝈
阅读(122)
推荐(0)
摘要:
NSSortDescriptor *sortDescriptor; sortDescriptor = [[NSSortDescriptor alloc]initWithKey:@"dtDateReal" ascending:NO]...
阅读全文
posted @ 2015-08-28 16:41
火星的蝈蝈
阅读(414)
推荐(0)
摘要:
UIStoryboard*sb=[UIStoryboard storyboardWithName:@"Main" bundle:nil]; LoginVC*loginVC=[sb instantiateViewControllerWithIdentifier:@"Log...
阅读全文
posted @ 2015-08-27 14:39
火星的蝈蝈
阅读(151)
推荐(0)
摘要:
http://blog.csdn.net/dalehui/article/details/16807157#
阅读全文
posted @ 2015-08-27 11:16
火星的蝈蝈
阅读(112)
推荐(0)
摘要:
- (void)initUserInterface{ UILabel *label = [[UILabel alloc]init]; label.numberOfLines = 0; // 需要把显示行数设置成无限制 label.font = [UIFont systemFontO...
阅读全文
posted @ 2015-08-26 16:36
火星的蝈蝈
阅读(938)
推荐(0)
摘要:
UIView*view=sender.view; [UIView animateWithDuration:0.1f animations:^{ view.transform=CGAffineTransformMakeScale(0.8, 0.8); } completion:^(BOOL fini...
阅读全文
posted @ 2015-08-25 16:38
火星的蝈蝈
阅读(140)
推荐(0)
摘要:
1、将要归档的对象遵守协议@interface Account : NSObject2、在m方法中实现2个方法//从文件中解析对象的时候调用- (id)initWithCoder:(NSCoder *)decoder{ self = [super init]; if (self)...
阅读全文
posted @ 2015-08-11 17:10
火星的蝈蝈
阅读(146)
推荐(0)