判断当前设备的系统信息#define isIOS8 ([[[UIDevice currentDevice] systemVersion] hasPrefix:@"8"])iOS8下用下面的方法- (void)setInset:(UITableView *)view cell:(UITableView...
分类:
移动开发 时间:
2014-12-26 12:45:13
阅读次数:
200
移动端开发仿app头部底部固定设置position:fixed,android2.2以上已经实现。但是在ios8以下系统,当小键盘激活时,都会出现位置浮动问题。如图:如何解决:查阅资料之后想到一下几种解决方法1,使用position:absolute模拟问题来了:滑动页面时头部底部div会有明显的抖...
分类:
移动开发 时间:
2014-12-26 12:36:40
阅读次数:
413
Working with Auto Layout Programmatically 如果你在运行阶段添加或者移除views你就需要通过代码来添加约束来保证你的interface能正确适应size或者orientation的改变。Creating Constraints Programmaticall...
分类:
其他好文 时间:
2014-12-25 18:01:42
阅读次数:
157
Debugging in Code 有两个调试layout问题的阶段。1. Map from “this view is in the wrong place” to “this constraint (or these constraints) is (are) incorrect.” 2. Ma...
分类:
其他好文 时间:
2014-12-25 17:52:51
阅读次数:
186
Xcode6.0.1对ios8.1真机不识别,升级Xcode6.0.1为Xcode6.1,就行了。也可以,降低手机版本为以前的版本,想要降低手机版本请看我的另一片博客《iphone手机版本降级》。
分类:
移动开发 时间:
2014-12-25 17:43:12
阅读次数:
173
如果方法是没有返回值的,需要强转一个返回类型为void的临时函数指针,void (*objc_msgSendTyped)(id self, SEL _cmd, id obj, id arg1) = (void *)objc_msgSend;objc_msgSendTyped(self, addedS...
分类:
移动开发 时间:
2014-12-25 16:13:09
阅读次数:
271
原文 http://www.cnblogs.com/smileEvday/p/iOS8.html 1、UIWindow的boundsiOS 7之前Window的bounds不会随着方向而变化,但是到了iOS 8以后,随着设备方向的旋转,window.bounds.size.width和window....
分类:
移动开发 时间:
2014-12-24 21:25:35
阅读次数:
204
代码实现
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
//使用图片初始化背景色
self.view.backgroundColor = [UIColor colorWithPat...
分类:
移动开发 时间:
2014-12-24 18:02:30
阅读次数:
139
最近在做关于iPhone6,6+,以及你给iOS8 的适配。
在此做一小结。
iOS多屏幕中适配的实现设计到以下几个方面。
1、宏定义:
原理:通过定义宏定义获取屏幕的宽高,从而可以动态定位视图中元素的大小和位置。
适用于: 屏幕尺寸较少,内容显示单一,满足于元素放大、缩小等较单一的呈现。
缺点:随着iPhone设备种类的增多,屏幕尺寸趋于多...
分类:
移动开发 时间:
2014-12-24 16:26:26
阅读次数:
137
1: 升级自己的手机到ios8, 同时mac os也要升级到10.102: 用usb数据线将手机连上电脑。3: 打开quicktime player创建新movie4: 选择手机作为音频、视频源(Options键进行选择)5: 开始录制,并保存
分类:
移动开发 时间:
2014-12-24 13:18:32
阅读次数:
178