摘要: 应用程序的生命周期1.程序入口进入main函数,设置Appdelegate为代理函数UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]))2.程序加载完成进入- (BOOL)application:(UIA 阅读全文
posted @ 2019-01-17 17:16 邢晓晓 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1.iOS 重写父类方法子类中重写父类中的方法,如果不调用父类中的方法,那么就不执行父类中的防范,就像新写了个名字一样的方法把父类中的方法覆盖掉了一样,如果调用,就会调用父类方法2. iOS 重写父类继承代理的方法(自定义代理) 先回调父类代理的方法,随后在进入子类的代理方法 4.OS 重写父类继承 阅读全文
posted @ 2019-01-16 17:53 邢晓晓 阅读(3397) 评论(0) 推荐(0) 编辑
摘要: 1.Cocoapods安装出现错误 1.1 不支持ruby2.2以下的版本,可以装多个ruby版本,但是得设置为默认的 1.2 镜像文件被屏蔽,需要移除之后,再重新设置 2.查询主要命令 2.1 pod install 安装 2.2 查询是否支持第三方库的命令 pod search AFNetwor 阅读全文
posted @ 2019-01-15 18:25 邢晓晓 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 1.使用了私有API,就是项目中使用prefs:root以及App-Prefs:root的接口来做app内部和系统设置的跳转了。现在做app系统设置跳转,官方的只能使用UIApplicationOpenSettingURLString.一些网站上说使用prefs:root配合在info.plist上 阅读全文
posted @ 2019-01-09 17:38 邢晓晓 阅读(159) 评论(0) 推荐(0) 编辑
摘要: dispatch_source_create创建定时器 //定时器 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); // 创建定时器,本身也是个oc对象,必须设置为全局,不 阅读全文
posted @ 2019-01-08 11:33 邢晓晓 阅读(1301) 评论(0) 推荐(0) 编辑
摘要: 最近使用UIProgressView这个控件,设置了frame UIProgressView *progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, progerssY, SCREEN_WIDTH, 1)]; progr 阅读全文
posted @ 2019-01-07 18:16 邢晓晓 阅读(1936) 评论(0) 推荐(0) 编辑
摘要: #define Alert(_S_, ...) [[[UIAlertView alloc] initWithTitle:@"提示" message:[NSString stringWithFormat:(_S_), ##__VA_ARGS__] delegate:nil cancelButtonTi 阅读全文
posted @ 2018-03-07 09:56 邢晓晓 阅读(178) 评论(0) 推荐(0) 编辑
摘要: _searchBar = [[UISearchBar alloc] init]; _searchBar.backgroundColor = [UIColor clearColor]; _searchBar.showsCancelButton = NO; _searchBar.tintColor = 阅读全文
posted @ 2018-03-07 09:53 邢晓晓 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #pragma mark - base method/** * 获取该类的所有属性 */+ (NSDictionary *)getPropertys{ NSMutableArray *proNames = [NSMutableArray array]; NSMutableArray *proType 阅读全文
posted @ 2018-03-07 09:50 邢晓晓 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: 创建window设置为全局变量,局部的已创建就会被释放掉UIWindow *window=[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]]; window.backgroundColor=[UIColor greenColor 阅读全文
posted @ 2018-03-07 09:47 邢晓晓 阅读(573) 评论(0) 推荐(0) 编辑