接着上篇继续:
1、在jni下的android.mk里面添加LOCAL_SRC_FILES := hellocpp/main.cpp ../../Classes/AppDelegate.cpp ../../Classes/DomobAd.cpp ../../Classes...
分类:
移动开发 时间:
2015-07-24 12:50:41
阅读次数:
161
一,代码动态改写1,一般程序启动就自动执行 main.storyboard也可以在AppDelegate改写- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)l...
分类:
其他好文 时间:
2015-07-24 12:43:10
阅读次数:
81
#import "RootViewController.h" RootViewController *rootVC=[[[RootViewController alloc] init] autorelease]; self.window.rootViewController=rootVC;
分类:
移动开发 时间:
2015-07-24 10:42:15
阅读次数:
209
当一个app按home键退出的时候,只有最多5秒的时间做一些保存或清理资源的工作。但是调用beginBackgroundTaskWithExpirationHandler方法,可以最多有10分时间在后台运行。我们可以用这个时间来做清理本地缓存,发送统计数据等事情。AppDelegate.h#impo...
分类:
其他好文 时间:
2015-07-23 23:27:26
阅读次数:
141
当一个app按home键退出的时候,只有最多5秒的时间做一些保存或清理资源的工作。但是调用beginBackgroundTaskWithExpirationHandler方法,可以最多有10分时间在后台运行。我们可以用这个时间来做清理本地缓存,发送统计数据等事情。
AppDelegate.h
#import
@interface AppDelegate ...
分类:
其他好文 时间:
2015-07-23 21:47:35
阅读次数:
130
标签:推送 push ios8 devicetoken token xcode6原文:http://roybaby.blog.51cto.com/1508945/1557854打开AppDelegate.m怎么做:首先:12345678910111213-(BOOL)application:(UIA...
分类:
移动开发 时间:
2015-07-23 17:35:13
阅读次数:
144
#import "AppDelegate.h"
//#import "DBAreaItem.h"
#pragma mark -
#pragma mark Private Interface
@interface AppDelegate()
typedef enum
{
AlertViewStyleConflict=10,/...
分类:
移动开发 时间:
2015-07-23 12:10:51
阅读次数:
134
今天在项目中[AppDelegate sharePhoneWidth]这行遇到No known class method for selector
"sharePhoneWidth"错误,当在其他类中去调用这个类时 大概意思应该是找不到该类方法。仔细一看原来是在AppDelegate类.h文件中忘记声明了
//屏幕宽度
+ (CGFloat)sharePhoneWidth; 在.h声明一下...
分类:
其他好文 时间:
2015-07-20 19:29:45
阅读次数:
2639
#import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate//无论程序在前后台运行,只要接收到通知,就会调用此方法-(void)application:(UIApplication *)applica...
分类:
移动开发 时间:
2015-07-18 00:24:26
阅读次数:
256
1.进入https://www.jpush.cn/common/products,注册用户,下载ADK,查看使用说明2.简单的在AppDelegate中添加如下代码#import "AppDelegate.h"#import "APService.h"@interface AppDelegate (...
分类:
其他好文 时间:
2015-07-18 00:24:01
阅读次数:
192