上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: // ViewController.m #import "ViewController.h" @interface ViewController () { //任务队列,能够自动管理多个任务(NSOperation的对象) NSOperationQueue *_operationQueue; } @end @implementation ViewController #d... 阅读全文
posted @ 2016-07-12 21:13 代码始我快乐 阅读(295) 评论(0) 推荐(0)
摘要: 建表: 自动生成: 代码: 阅读全文
posted @ 2016-07-12 15:05 代码始我快乐 阅读(170) 评论(0) 推荐(0)
摘要: #import "RootViewController.h" #import "FMDatabase.h" @interface RootViewController () { FMDatabase * myDB; } @end @implementation RootViewController //FMDB是将SQLite中复杂的SQL语法进行封装 //FMDB适用于ARC或者MR... 阅读全文
posted @ 2016-07-12 14:49 代码始我快乐 阅读(207) 评论(0) 推荐(0)
摘要: //广告标示符,适用于对外:例如广告推广,换量等跨应用的用户追踪等。 NSString *adId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]; NSLog(@"adId==%@",adId); //Vindor标示符,适用于对内:例如分析用户在应用内的行为等... 阅读全文
posted @ 2016-07-12 14:33 代码始我快乐 阅读(380) 评论(0) 推荐(0)
摘要: // BOY.h #import @interface BOY : NSObject @property (nonatomic,retain) NSString * boyName; @end // GIRL.h #import @interface GIRL : NSObject @property (nonatomic,retain) NSString * girlNa... 阅读全文
posted @ 2016-07-12 14:29 代码始我快乐 阅读(196) 评论(0) 推荐(0)
摘要: 用 presentViewController和dismissViewControllerAnimated 实现 pushViewController和popViewControllerAnimated动画 阅读全文
posted @ 2016-07-12 13:49 代码始我快乐 阅读(296) 评论(0) 推荐(0)
摘要: VC cell里面点击按钮 效果图: 阅读全文
posted @ 2016-07-12 11:22 代码始我快乐 阅读(312) 评论(0) 推荐(0)
摘要: // // RegularHelp.m // #import "RegularHelp.h" @implementation RegularHelp //没使用 + (BOOL) validateUserAge:(NSString *)str { NSRegularExpression *regul 阅读全文
posted @ 2016-07-12 11:12 代码始我快乐 阅读(204) 评论(0) 推荐(0)
摘要: 定义方法: 调用的时候: 在一个类中: Model *model =[Model initWithName:@"testName1" AndAge:@"1"]; 在另一个类中:Model *model =[Model initWithName:@"testName2" AndAge:@"2"]; 结 阅读全文
posted @ 2016-07-12 10:26 代码始我快乐 阅读(261) 评论(0) 推荐(0)
摘要: 代理传值: // SendViewController.h #import <UIKit/UIKit.h> @protocol SendInFor <NSObject> -(void)sendInForIdea:(NSString*)text; @end @protocol SendInForTwo 阅读全文
posted @ 2016-07-12 09:56 代码始我快乐 阅读(207) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页