1. typedef在前文中,我们用宏定义来定义了一个BOOL类型,那么现在就用更专业的方式来定义类型。typedef int Bool;int main (void){ Bool flag=1; if(flag) { printf("True"); } ...
分类:
移动开发 时间:
2015-11-11 23:33:47
阅读次数:
274
01.IOS基础01.iOS开发快速入门教程http://pan.baidu.com/s/1kT3ScOf链接: http://pan.baidu.com/s/1kTKheAF 密码: yycm02.苹果开发零基础入门教程http://pan.baidu.com/s/1dDfHL77链接: http...
分类:
移动开发 时间:
2015-11-06 11:16:24
阅读次数:
383
搜素总结 1、加的是searchDisplayController 2、两个代理? UISearchBarDelegate,UISearchDisplayDelegate 并设置 3、连线 searchDisplay和searchBar 4、将 self.tableView.tableHeaderView=self.searchBar 固定住...
分类:
移动开发 时间:
2015-10-21 12:47:49
阅读次数:
203
//判断是否为整形:- (BOOL)isPureInt:(NSString*)string{ NSScanner* scan = [NSScannerscannerWithString:string]; intval; return[scanscanInt:&val] && [scanisAtEnd...
分类:
移动开发 时间:
2015-10-20 13:47:18
阅读次数:
140
[btn setImage:[UIImage imageWithName:@"paly"] forState:UIControlStateNormal]; [btn addTarget:self action:@selector(btnClick:) forControlEvents:UICont....
分类:
移动开发 时间:
2015-10-03 20:45:52
阅读次数:
281
iOS开发网络篇—监测网络状态一、说明在网络应用中,需要对用户设备的网络状态进行实时监控,有两个目的:(1)让用户了解自己的网络状态,防止一些误会(比如怪应用无能)(2)根据用户的网络状态进行智能处理,节省用户流量,提高用户体验 WIFI\3G网络:自动下载高清图片 低速网络:只下载缩略图 没...
分类:
移动开发 时间:
2015-09-29 09:51:29
阅读次数:
191
UINavigationController 导航控制器是iOS中最常用的多视图控制器之一,它用来管理多个视图控制器导航控制器可以认为是管理控制器的控制器,主要管理有层级关系的控制器导航控制器以栈的方式管理所控制的视图控制器,至少要有一个被管理的视图控制器,这个控制器我们称作导航控制器的根视图控制器...
分类:
移动开发 时间:
2015-09-26 18:32:18
阅读次数:
289
1 //触摸四个方法 2 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 3 UITouch *touch = [touches anyObject]; 4 CGPoint point = [tou...
分类:
移动开发 时间:
2015-09-26 15:55:23
阅读次数:
444
事件处理的事件传递简介:发生触摸事件后,系统会将该事件加入到一个由UIApplication管理的事件 队列中,UIApplication会从事件队列中取出最前面的事件,并将事件分发下去以便处理,通常,先发送事件给应用程序的主窗口(keyWindow)UIView不接受触摸事件的三种情况:不接收用户...
分类:
移动开发 时间:
2015-09-26 15:49:43
阅读次数:
219
自定义视图例如,登陆页面中,左边label,右边textField。自定义@interface LTView : UIView@property (nonatomic,retain) UILabel *label;@property (nonatomic,retain) UITextField *t...
分类:
移动开发 时间:
2015-09-26 14:39:47
阅读次数:
224