1,配置开发版本 AdHoc开发版,AppStore正式版 2,oc的宏转swift //常量=》ObjectC宏 letLoadingTip="加载中..." letiOS8:Float=8.0 letScreenHeight =UIScreen.mainScreen().bounds.size. ...
分类:
移动开发 时间:
2016-06-14 16:08:35
阅读次数:
233
1. 创建地图,加载控件 2. 创建世界范围的基于墨卡托投影的地图 3. 坐标转换后居中 4. bounds 转换后居中 5. 4. ...
分类:
其他好文 时间:
2016-06-08 10:37:51
阅读次数:
510
首先确保一份已经配好功能的html文件。 1.初始化一个webview(viewdidload) UIWebView* webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:webVie ...
分类:
编程语言 时间:
2016-06-06 16:31:49
阅读次数:
294
大熊猫猪·侯佩原创或翻译作品.欢迎转载,转载请注明出处.
如果觉得写的不好请多提意见,如果觉得不错请多多支持点赞.谢谢! hopy ;)
Cocoa层的坐标系一直理解的不清晰,现在把它整理总结一下:
1: layer在super layer中的位置由frame属性来确定,而bounds属性的原点永远是(0,0),因为bounds相对的layer自己.
2: layer还有一个po...
分类:
其他好文 时间:
2016-06-06 09:10:48
阅读次数:
217
懒加载是用到的时候再去加载比如 -(UITableView *)tableview{ if (!_tableview) { _tableview = [[UITableView alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.table ...
分类:
其他好文 时间:
2016-06-03 19:03:51
阅读次数:
164
区别: frame:根据父视图坐标系来确定自己的位置bounds:该视图在自己坐标系的位置和大小 修改bounds并不会引起视图位置的变化,会影响自身子视图的位置;修改frame会引起视图位置的变化 这时显示的视图是 这时显示的视图是 ...
分类:
其他好文 时间:
2016-06-01 22:45:11
阅读次数:
134
self.window = UIWindow(frame:UIScreen.mainScreen().bounds) let rootVC : RootViewController = RootViewController() let navi = UINavigationController(ro ...
分类:
移动开发 时间:
2016-06-01 21:20:38
阅读次数:
126
在xib拖拽控件的界面给view添加背景 UIImageView *imageView = [[UIImageView alloc]initWithFrame:self.view.bounds]; imageView.image = [UIImage imageNamed:@"51670.jpg"] ...
分类:
其他好文 时间:
2016-05-31 15:40:43
阅读次数:
136
1. 概述 iOS开发中,必然会涉及到布局相关问题,frame,bounds,contenSize,contentOffset,contentInset这几个布局相关概念让许多初学者感到困惑。虽然初步了解这几个概念,即可完成大部分界面的布局,但布局较复杂页面时就有点力不从心了。 2. 概念解析 2. ...
分类:
移动开发 时间:
2016-05-29 22:47:11
阅读次数:
256
gcc提供了大量的警告选项,对代码中可能存在的问题提出警告,通常可以使用-Wall来开启以下警告: -Waddress -Warray-bounds (only with -O2) -Wc++0x-compat -Wchar-subscripts -Wimplicit-int -Wimplicit- ...
分类:
其他好文 时间:
2016-05-29 19:48:39
阅读次数:
157