- (void)aLiPay:(id)result{ // 调起支付宝支付 NSString *partner = @"2088811678361814"; NSString...
1.IOS推送详解 网址:http://www.cnblogs.com/qiqibo/archive/2012/08/25/2656856.html 2.苹果所有常用证书,a...
// 搜索功能实现的主要代码 self.searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, fra...
// 清除缓存的方法 - (void)deleteAll { DataBaseHandler *db = [DataBaseHandler shareInstance]; M...
// 定时推送的方法 - (void)addLocalNotification { // 创建一个本地推送 UILocalNotification *notification...
//获取版本信息 - (void) getVersion { versionVC = [[kbCompareVersion alloc] init]; [versionVC ...
self.webDetailsView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame...
#define WS(weakSelf) __weak __typeof(&*self)weakSelf = self; 你复制我的代码,然后再block里面直接打 WS(w...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDicti...
3:从后台恢复时调用的委托 - (void)applicationWillEnterForeground:(UIApplication *)application
UIBarButtonItem *reFresh = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@...
shift-Command-O 快速索引文件
[self.window.layer addAnimation:animation forKey:@"animation"]; self.window.rootViewCon...
调用javascript代码 UIWebView提供 - (NSString *)stringByEvaluatingJavaScriptFromString:(NSStri...
加载本地HTML页面方式一 NSString *localHTMLPageName = @"myPage";NSString *path = [[NSBundle mainB...
存入本地 NSString *string = [NSString stringWithString @“NeiGou"]; NSUserDefaults *ud = [NS...
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:要输入的数字。0代表取消,不显示]; // ...