摘要:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ //获取触摸对象 UITouch *touch = [touches anyObject]; if (touch.tapCount == 1) { //延迟调用 [se 阅读全文
posted @ 2016-03-03 11:09
zhangxianhongx
阅读(398)
评论(0)
推荐(0)
摘要:
主题切换,其实就是更改所有界面的UI图,比如tabBar上的,NavigationBar上的,还有viewController的背景图等等。 但是这些图片放在哪儿呢? 联想一下,平时我们安装程序的时候有这个主题切换吗? 一般是没有的,除非一些非常二的程序才有。 原因是什么呢? 因为这些主题占用内存太 阅读全文
posted @ 2016-03-03 11:06
zhangxianhongx
阅读(432)
评论(0)
推荐(0)
摘要:
#import "ViewController.h" @interface ViewController () { UIView *view1; } @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoa 阅读全文
posted @ 2016-03-03 10:53
zhangxianhongx
阅读(411)
评论(0)
推荐(0)
摘要:
//验证手机号码 + (BOOL) validateMobile:(NSString *)mobile { if (mobile.length == 0) { NSString *message = @"手机号码不能为空!"; UIAlertView *alertView = [[UIAlertVi 阅读全文
posted @ 2016-03-03 10:42
zhangxianhongx
阅读(332)
评论(0)
推荐(0)
摘要:
if ([UIApplication instancesRespondToSelector:@selector(canOpenURL:)]) { NSString *telephonNumber = @"手机号"; NSURL *url = [NSURL fileURLWithPath:teleph 阅读全文
posted @ 2016-03-03 10:41
zhangxianhongx
阅读(1042)
评论(0)
推荐(0)
摘要:
#pragma mark 获取wifi名 + (NSString *)getWifiName { NSString *wifiName = nil; CFArrayRef wifiInterfaces = CNCopySupportedInterfaces(); if (!wifiInterface 阅读全文
posted @ 2016-03-03 10:38
zhangxianhongx
阅读(451)
评论(0)
推荐(0)

浙公网安备 33010602011771号