字典相当于c++ stl中的map字典NSDictionary 1 #import 2 #import "AppDelegate.h" 3 4 int main(int argc, char * argv[]) { 5 // 从@符号创建字典 实际上就是键值对容器 6 NSDi...
分类:
其他好文 时间:
2015-11-27 21:45:09
阅读次数:
176
数组的使用方式下面是数组:类型NSArray 1 #import 2 #import "AppDelegate.h" 3 4 int main(int argc, char * argv[]) { 5 6 // 通过@符号创建数组 7 NSArray *arr = @[...
分类:
编程语言 时间:
2015-11-27 21:42:16
阅读次数:
131
作为应用程序的委托对象,AppDelegate类在应用生命周期的不同阶段会回调不同的方法。首先,让我们先了解一下iOS 应用的不同状态及它们彼此间的关系,见图1 。 图1 iOS应用状态图 ...
分类:
移动开发 时间:
2015-11-26 01:11:31
阅读次数:
227
App有三种状态:1. 死亡状态(未打开App);2. 前台运行状态(打开状态);3. 后台暂停状态(停止所有动画, 定时器, 多媒体联网等操作)4. 后台运行状态(后台运行); ---------需要在AppDelegate中设置:1. 在- (void)applicationDidEnterBa...
分类:
移动开发 时间:
2015-11-25 17:00:15
阅读次数:
191
在#import "AppDelegate.h"文件中的application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions方法中调用检测结果获得发布版本的Versio...
分类:
移动开发 时间:
2015-11-23 23:11:29
阅读次数:
201
一:集成友盟分享做第三方登录现在大多数用友盟,友盟之中做第三方登录的时候首先下载sdk,然后自己看文档,其实友盟的官方文档写的已经十分清楚了,这里自己写写,做一下笔记二:详细友盟:http://www.umeng.com/appDelegate中写入//设置分享到QQ/Qzone的应用Id,和分享url 链接
#import "UMSocialQQHandler.h"
[UMSoci...
分类:
移动开发 时间:
2015-11-23 19:08:27
阅读次数:
350
详细流程:前提: 使用友盟你需要去申请一个友盟的APPKey可以使用这个:5645e4d367e58e45cb000e7e第一步: 到友盟官网下载SDK.第二步: 在代码中设置你的友盟Appkey,在 AppDelegate文件内设置你的AppKey:注意这里要引入#import "UMSocia....
分类:
其他好文 时间:
2015-11-22 18:49:28
阅读次数:
237
#import "AppDelegate.h"#import "ViewController.h"@interfaceAppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplication *)applicati...
分类:
其他好文 时间:
2015-11-21 18:22:59
阅读次数:
265
1.target/action设计模式:AppDelegate.mRootViewController.mClickView.hClickView.mColorView.hColorView.mRootView.hRootView.mButtonView.hButtonView.m2.delegat...
分类:
其他好文 时间:
2015-11-21 18:19:37
阅读次数:
168
【浅学封装思想】实例壹:创建微博框架。首先是创建一个UITabBarController,在下面显示栏再创建四个 UIViewController。如下四个文本:1 // AppDelegate.h - 版本12 // Emo微博3 4 #import 5 6 @interface AppDel.....
分类:
移动开发 时间:
2015-11-20 06:56:48
阅读次数:
361