03 2016 档案
摘要:今天和以为老同学聊了一些,深有感触,看它传值都是用代理写的,自己平时都是用block,通知之类的,基本不用代理,想想代理,感觉自己也有些模棱两可,所以动手写了一个代理简单运用的demo,写完之后思考了一番,在与block和通知做一些比较,豁然开朗,感觉自己在以后又多了一大助力。 我一贯的态度,做项目
阅读全文
摘要:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //获取触摸对象 UITouch *touch = [touches anyObject]; if (touch.tapCount == 1) { //延迟调用 [se
阅读全文
摘要:主题切换,其实就是更改所有界面的UI图,比如tabBar上的,NavigationBar上的,还有viewController的背景图等等。 但是这些图片放在哪儿呢? 联想一下,平时我们安装程序的时候有这个主题切换吗? 一般是没有的,除非一些非常二的程序才有。 原因是什么呢? 因为这些主题占用内存太
阅读全文
摘要:#import "ViewController.h" @interface ViewController () { UIView *view1; } @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoa
阅读全文
摘要://验证手机号码 + (BOOL) validateMobile:(NSString *)mobile { if (mobile.length == 0) { NSString *message = @"手机号码不能为空!"; UIAlertView *alertView = [[UIAlertVi
阅读全文
摘要:if ([UIApplication instancesRespondToSelector:@selector(canOpenURL:)]) { NSString *telephonNumber = @"手机号"; NSURL *url = [NSURL fileURLWithPath:teleph
阅读全文
摘要:#pragma mark 获取wifi名 + (NSString *)getWifiName { NSString *wifiName = nil; CFArrayRef wifiInterfaces = CNCopySupportedInterfaces(); if (!wifiInterface
阅读全文

浙公网安备 33010602011771号