
ios
qinken547
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
An iOS 7 UIPickerView Example
Creating the iOS 7 PickerView ProjectThe example application in this chapter is a rudimentary currency conversion tool. The user will enter a US Dollar amount into a text field and then make a cur转载 2014-04-26 22:21:42 · 1216 阅读 · 0 评论 -
ios view的几种加载函数的区别didFinishLaunchingWithOptions、initWithNibName:bundle、loadView、viewWillAppear
application:didFinishLaunchingWithOptions: is where you instantiate and set anapplication’s root view controller.This method gets called exactly once when the application has launched. Even if you原创 2014-07-17 16:17:08 · 752 阅读 · 0 评论 -
Reusing UITableViewCells
iOS devices have a limited amount of memory. If you were displaying a list with thousands of entriesin a UITableView, you would have thousands of instances of UITableViewCell. And your longsuffering转载 2014-07-26 17:15:37 · 873 阅读 · 0 评论 -
ObjC利用正则表达式抓取网页内容(网络爬虫)
在开发项目的过程,很多情况下我们需要利用互联网上的一些数据,在这种情况下,我们可能要写一个爬虫来爬我们所需要的数据。一般情况下都是利用正则表达式来匹配Html,获取我们所需要的数据。一般情况下分以下三步。1、获取网页的html2、利用正则表达式,获取我们所需要的数据3、分析,使用获取到的数据,(例如,保存到数据库)接下来我们分析代码:转载 2014-08-21 14:33:10 · 544 阅读 · 0 评论 -
ios程序运行的几种状态 Application States and Transitions
原创 2014-08-24 15:41:33 · 481 阅读 · 0 评论 -
iphone和ipad关于removeFromSuperview使用注意
[UIApplication sharedApplication].keyWindow.subviews正常情况下当前窗口的subview只有一个,但是有时需要将整个屏幕蒙上一层半透明的view并显示自定义的提示框,这时会在当前窗口里参加view使得subview不止一个。本来如果用removeFromSuperview方法就可以把新增的view去掉,但是如果你不小心把原始的vie转载 2014-10-16 10:50:46 · 980 阅读 · 0 评论 -
iOS 屏幕适配,autoResizing autoLayout和sizeClass图文详解
1. autoResizingautoresizing是苹果早期的ui布局适配的解决办法,iOS6之前完全可以胜任了,因为苹果手机只有3.5寸的屏幕,在加上手机app很少支持横屏,所以iOS开发者基本不用怎么适配布局,所有的ui控件只要相对父控件布局就可以了,没错autoResizing就是一个相对于父控件的布局解决方法;注意:它只能相对父控件布局;***在xcode中可以通过可视转载 2015-01-18 15:57:29 · 1028 阅读 · 0 评论 -
UICollectionViewController使用,pushViewController弹出时
UICollectionViewController不同于其他viewcontroller,在使用过程中特别容易出现这种错误UICollectionView must be initialized with a non-nil layout parameter如果是这样(已经建立了一个UICollectionViewController的storyboard),这是原创 2015-02-12 11:27:39 · 1145 阅读 · 0 评论 -
KVC 与 KVO 理解
KVC 与 KVO 是 Objective C 的关键概念,个人认为必须理解的东西,下面是实例讲解。Key-Value Coding (KVC)KVC,即是指 NSKeyValueCoding,一个非正式的 Protocol,提供一种机制来间接访问对象的属性。KVO 就是基于 KVC 实现的关键技术之一。一个对象拥有某些属性。比如说,一个 Person 对象有一个 na转载 2015-03-03 10:32:33 · 550 阅读 · 0 评论