摘要:
一、使用方式1.声明NSTimer方法staticCGFloat sIntervalTime = 15.f; //定时刷新时间间隔@property (nonatomic, strong) NSTimer *queryNoticeTimer;2.开启定时器,初始化定时器方法,注意一点是一定要先停止定时器判断,再开启,否则会出现内存泄漏哒,userInfo字段是传递数据时会用到,当调用定... 阅读全文
posted @ 2017-07-07 23:43
Levi.duan
阅读(648)
评论(0)
推荐(0)
摘要:
一、使用方式+ 如下代码块功能:判断字体,判断字体输入格式 NSString *firstStr = [name substringToIndex:1]; NSArray *num = @[@"0",@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9"]; if ([num containsObject:firstStr]) {... 阅读全文
posted @ 2017-07-07 23:37
Levi.duan
阅读(503)
评论(0)
推荐(0)
摘要:
Goback()方法功能:返回上一级界面,通过判断popViewControllerAnimated类型是否为空,来判断是present还是pop出来,然后直接做了releaseSelf操作;- (void)goBack { IDSLOG(@"self: %@, parent: %@", self, [self parentViewController]); id page... 阅读全文
posted @ 2017-07-07 23:34
Levi.duan
阅读(1178)
评论(0)
推荐(0)

浙公网安备 33010602011771号