摘要:
版权声明:http://blog.csdn.net/u012131769/article/details/76639527#t8 转载:http://blog.csdn.net/u012131769/article/details/76639527#t8 版权声明:http://blog.csdn. 阅读全文
摘要:
1,延时执行(不可重复) [objc] view plain copy /** ** delay 不可重复 **/ - (void)timerMethodA { [self performSelector:@selector(methodAEvent) withObject:nil afterDel 阅读全文
摘要:
#define TabbarHeight ([[UIApplication sharedApplication] statusBarFrame].size.height>20?83:49) // 适配iPhone x 底部高度 #define Is_Iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) #define I... 阅读全文
摘要:
今天做项目遇到,如何清除全部的NSUserDefaults储存的数据。 方法1:找到所有的key然后remove掉 代码: [objc] view plain copy /** * 清除所有的存储本地的数据 */ - (void)clearAllUserDefaultsData { NSUserDefaults *userDefaults = [NSUserDefa... 阅读全文
摘要:
1 UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"更新提示" message:[NSString stringWithFormat:@"%@",self.model.groups.update_content] preferredStyle: UIAlertControllerStyleAle... 阅读全文
摘要:
转至:http://www.cnblogs.com/jys509/p/5001566.html 一般来讲如果app用了web service , 我们需要防止数据嗅探来保证数据安全.通常的做法是用ssl来连接以防止数据抓包和嗅探 其实这么做的话还是不够的 。 我们还需要防止中间人攻击(不明白的自己去 阅读全文
摘要:
//邮箱 + (BOOL) validateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [NSPredicate predicateWithFormat:@"SELF MA... 阅读全文
摘要:
今天做的主要是一个模仿淘宝,上拉进入商品详情的功能,主要是通过 tableView 与 webView 一起来实现的,当然也可根据自己的需要把 webView 替换成你想要的 阅读全文
摘要:
因为公司的iOS项目使用了cocoapods来管理第三方库,所以要求所有组员的cocoapods版本一致。一般的就是执行: $ sudo gem install -n /usr/local/bin cocoapods 进行升级即可。升级后输入如下命令查看cocoapods版本: $ pod --ve 阅读全文
摘要:
请看这个网址,谢谢谢 http://www.cnblogs.com/oc-bowen/p/6000389.html 阅读全文