09 2014 档案
ios8消息快捷处理——暂无输入框
摘要:if (isiOS8) {//ios8的远程推送注册 NSSet *set = nil;#if 1 //1.创建消息上面要添加的动作(按钮的形式显示出来) UIMutableUserNotificationAction *action = [[UIMutableUserNotif... 阅读全文
posted @ 2014-09-28 18:03 助金 阅读(351) 评论(0) 推荐(0)
animateWithDuration 动画的速度选择
摘要:+ (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void(^)(void))ani... 阅读全文
posted @ 2014-09-28 10:48 助金 阅读(1049) 评论(0) 推荐(0)
iOS8远程通知处理
摘要://IOS8新系统需要使用新的代码注册推送if([[[UIDevicecurrentDevice]systemVersion]floatValue]>=8.0){[[UIApplicationsharedApplication]registerUserNotificationSettings:[UI... 阅读全文
posted @ 2014-09-22 14:50 助金 阅读(320) 评论(0) 推荐(0)
iOS UIWebView 捕获403 、404错误
摘要:#pragma mark -#pragma mark - UIWebView Delegate Methods- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigat... 阅读全文
posted @ 2014-09-12 13:25 助金 阅读(456) 评论(0) 推荐(0)
iOS 加入自定义字体方法
摘要:1.网上搜索字体文件(后缀名为.ttf,或.odf)2.把字体库导入到工程的resouce中3.在程序添加以下代码 输出所有字体NSArray *familyNames = [UIFont familyNames];for( NSString *familyName in familyNames )... 阅读全文
posted @ 2014-09-04 10:56 助金 阅读(188) 评论(0) 推荐(0)