ios
sgl870927
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Managing the Keyboard
Managing the KeyboardWhen users touch a text field, a text view, or a field in a web view, the system displays a keyboard. You can configure the type of keyboard that is displayed along with sever转载 2012-10-19 09:19:58 · 1325 阅读 · 0 评论 -
frame bounds contentOffset contentInset
这几个都是在ios程序中,经常会注意到的一些小细节,能否真正了解这些,对写ios程序也有很大的好处。frame 是UIView中表示此view的一个矩形面积,包括了view在它的superview中的一些几何上的标识。有起始坐标,也就是origin(CGPoint)和这个矩形面积的宽(width)和高(height)bounds 每个view,除了有对应它的superview的相关原创 2012-10-19 09:46:40 · 1174 阅读 · 0 评论 -
IOS block编程注意事项
block可以完全作为delegatge的替代品,而且使用简单,不需要写太多@protocol来定义接口。但使用有以下几点注意。(1) block不是Object对象,所以对retain无效,要想保留block生命周期,最好通过copy来实现,当然copy后,要记得release。如果不想手动管理,就通过[[[testBlock] copy] autorelease]来管理。(2)我们知道原创 2012-11-09 16:56:52 · 8543 阅读 · 0 评论 -
iOS开发之Objective-C与JavaScript的交互
UIWebView是iOS最常用的SDK之一,它有一个stringByEvaluatingJavaScriptFromString方法可以将javascript嵌入页面中,通过这个方法我们可以在iOS中与UIWebView中的网页元素交互。stringByEvaluatingJavaScriptFromString 使用stringByEvaluatingJavaScript转载 2012-11-20 14:23:41 · 1354 阅读 · 0 评论 -
百度地图1.2.2 问题集合
(1)编译正常,运行报 [UIDevice uniqueGlobalDeviceIdentifier]: unrecognized selector sent to此时需要 other linker flags 添加 -all_load参数。 具体:Project ->build settings ->linking->Other Linker flags(2)编译报原创 2012-10-31 20:57:41 · 2115 阅读 · 0 评论 -
ios arc编程
由于最近项目要用到arc,网上查了资料,发现大部分对其理解有误。现在贴出官方对arc的定义和使用地址,有时间再回来整理,地址:https://developer.apple.com/library/ios/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid原创 2012-11-24 12:09:11 · 896 阅读 · 0 评论
分享