共 10 篇文章 |
|
iOS推送小结。第二阶段:APNS在自身的已注册Push服务的iPhone列表中,查找有相应标识的iPhone,并把消息发送到iPhone。func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) { var token:String = deviceToken.description.stringByTrimmingCharactersInSet(NSCharacterSet(c... 阅578 转3 评0 公众公开 15-08-06 16:55 |
IOS 启动画面设置Table 39-1Size (in pixels) of custom icons and images.iPad and iPad mini (@2x)Default-Landscape@2x~ipad.png (2048x1536 ~ for Retina iPad Landscape)其老早在 https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIActivityViewController_Class/ 中就说了:On iPad, you must present the view... 阅620 转1 评0 公众公开 15-07-30 11:01 |
iOS8设置NavigationBar颜色和BackButtonItem颜色 | LvesLi''s Blogging. 阅56 转1 评0 公众公开 15-06-19 15:25 |
iOS iOS8注册通知。一直更新了iOS8,但是一直没有开始研究这个iOS8,今天因为项目用到了推送,于是体验了iOS8的推送,先讲讲这个推送。目前分为四个推送:用户推送,本地推送,远程推送,地理位置推送。远程推送,所有消息大小不超过2KB,我们获取远程推送的json格式的消息,解析这个消息就是我们的远程推送了:最后再总结一下,整个推送流程我... 阅13 转0 评0 公众公开 15-06-19 14:47 |
iOS8 UITableView动态加载cell的高度iOS8 UITableView动态加载cell的高度。iOS8新特性,ios8以后,你在也不需要根据cell上内容的不一样计算每个cell的高度了,因为系统可以自己加载它的高度。- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{- (UITableViewCell *)tableView:(UITableView *)tableV... 阅73 转1 评0 公众公开 15-06-19 14:30 |
Xcode6模拟器iOS8键盘出不来问题。Xcode6推出后,我们在使用它编辑项目的时候,发现它跟之前版本的模拟器不太一样了,点击输入框的时候,第一次模拟器的键盘会出现,但是以后再点输入框,键盘就出不来了。之前版本是模拟器的键盘和电脑的键盘都可以使用,但是Xcode6的模拟器键盘只能使用一种,即要么是模拟器键盘,要么是电脑键盘。 阅52 转0 评0 公众公开 15-06-19 14:23 |
AutoLayout 自动布局 一.什么时候用autolayout比较适合 1.不负责任的骑墙派说法:apple的设备越来越多了,你的应用应该都使用al。用xib加al,view布局非常简单容易。VFL在程序中由支持: + (NSArray *)constraintsWithVisualFormat:(NSString *)format options:(NSLayoutFormatOptions)opts metrics:(NSDictionary *)metrics views:(NSDicti... 阅110 转0 评0 公众公开 15-06-19 14:23 |
iOS8定位服务。小伙伴们更新了iOS8系统后,发现有的程序无法定位了,那是因为iOS8对定位隐私做了优化,需要添加一些配置,具体操作如下所示:1. @interface里: CLLocationManager *locationManager;2. 初始化: locationManager = [[CLLocationManager alloc] init];3. 调用请求: [locationManager requestAlwaysAuthorization]; ... 阅28 转0 评0 公众公开 15-06-19 14:23 |
AVCaptureDevice相机设备。有很多Device的input,也有很多数据类型的Output,都通过一个Capture Session来控制进行传输。You add the capture devices and outputs you want to the session, then start data flow by sending the session a startRunning message, and stop recording by sending a stopRunning message.//添加input到session... 阅1820 转3 评0 公众公开 15-06-19 14:22 |
iOS8新特性之基于地理位置的消息通知UILocalNotification 苹果在WWDC2014上正式发布了全新的iOS8操作系统。iOS8中更新和公开了很多接口,其中有一项本地消息通知UILocalNotification,大家肯定都不陌生。现在它可以根据地理位置发起消息通知,即我们在App中设置好一个坐标(经纬度)和半径(范围),当装有本App的设备进入本区域后,Ap... 阅27 转0 评0 公众公开 15-06-19 14:22 |