08 2014 档案
摘要:UILabel *badge = (UILabel *)[self.view viewWithTag:10000];
阅读全文
摘要:NSString* strA = [@"%E4%B8%AD%E5%9B%BD"stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *strB = [@"中国"stringByAddingPercen...
阅读全文
摘要:#pragma mark - UItableView滚动时收键盘- (void)scrollViewWillBeginDragging:(UITableView *)scrollView{ [self.view endEditing:YES];}
阅读全文
摘要:有时候不想让Cell重用,怎么办勒。接下来介绍两种方法方法一- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NS...
阅读全文
摘要:App没有启动的时候,接受到了消息通知.这个时候操作系统会按默认方式来展示一个alert,在App Icon上标记一个数字1.当程序处于关闭状态收到推送消息时,点击图标或消息栏会调用- (BOOL)application:(UIApplication *)application didFinishL...
阅读全文
摘要:首先,iOS 会再持续切入后台,给我们5秒钟的时间去处理相关数据,5秒后,程序不会再执行任何代码,处于挂起状态。// 项目需求,按下Home切换后台后向服务器传一些数据,废话不多说,直接上代码/*** 申请后台任务*/- (void)beginBackgroundTask{ _bgTask = [...
阅读全文
摘要:// aps_development.cer 转化成pemopenssl x509 -in aps_development.cer -inform der -out PushChatCert.pem// p12 转化成pemopenssl pkcs12 -nocerts -out PushChatK...
阅读全文
摘要:cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame]; cell.selectedBackgroundView.backgroundColor = [UIColor whiteColor];- (void)t...
阅读全文
摘要:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self request];}- (voi...
阅读全文

浙公网安备 33010602011771号