推送需要真机调试#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate//注册完毕 远程推送通知之后就会调用-(void)application:(UIApplication *)applicat...
分类:
其他好文 时间:
2015-07-18 00:14:13
阅读次数:
119
// AppDelegate.m// UI2_异步下载//// Created by zhangxueming on 15/7/17.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#import "AppDelegate...
分类:
其他好文 时间:
2015-07-17 18:36:27
阅读次数:
134
首先我们需要搭建一个空的项目,当然xcode6.0以后不支持直接创建空项目,所以我们需要在系统生成项目之后,删除xcode自动给你生成的控制器和storyboard,另外需要在Main Interface 处将之前的main删除。如图所示:然后我们需要在Appdelegate.m文件中的- (BOO...
分类:
其他好文 时间:
2015-07-17 11:23:49
阅读次数:
122
iOS的推送通知分为本地推送和网络推送两种,如果App处于挂起状态,是可以发送本地通知的,如果已经被杀掉,则只有定时通知可以被执行,而类似于QQ的那种网络消息推送就无法实现了,因为App的网络模块在被杀掉后是无法执行的,这时候就要借助远程通知,通过苹果的服务器转发通知到手机,本文只介绍本地通知的用法。
①对于iOS8及以上的版本,需要注册本地通知才能使用,一般在AppDelegate中注册:
...
分类:
移动开发 时间:
2015-07-17 10:06:50
阅读次数:
206
一,在AppDelegate.m中写入如下代码:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after applicat...
分类:
其他好文 时间:
2015-07-17 09:45:22
阅读次数:
79
纯代码开发屏幕适配处理方法:为适配iphone各个版本的机型,对ui布局中的坐标采用比例的方式进行初始化,在这里选定iphone6作为ui布局1.首先在AppDelegate.h中定义两个属性: 1 #import 2 3 @interface AppDelegate : UIResponder.....
分类:
移动开发 时间:
2015-07-17 09:33:16
阅读次数:
140
一,在AppDelegate.m中写入如下代码:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override ...
分类:
其他好文 时间:
2015-07-17 09:30:19
阅读次数:
85
// AppDelegate.m// UI2_UICollectionViewPicture//// Created by zhangxueming on 15/7/16.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#...
分类:
其他好文 时间:
2015-07-16 22:04:31
阅读次数:
127
// AppDelegate.m// UI1_UICollectionView//// Created by zhangxueming on 15/7/16.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#import ...
分类:
其他好文 时间:
2015-07-16 21:54:57
阅读次数:
142
// AppDelegate.m// UI3_UICollectionViewMuti//// Created by zhangxueming on 15/7/16.// Copyright (c) 2015年 zhangxueming. All rights reserved.//#imp...
分类:
其他好文 时间:
2015-07-16 21:45:20
阅读次数:
122