上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: JS对文字进行编码涉及3个函数:escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 阅读全文
posted @ 2013-12-11 12:42 沙影无痕 阅读(106) 评论(0) 推荐(0) 编辑
摘要: CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSMan... 阅读全文
posted @ 2013-12-10 15:13 沙影无痕 阅读(161) 评论(0) 推荐(0) 编辑
摘要: - (UIImage *) addTextToImage:(UIImage *) baseImage text:(NSString *)text atRect:(CGRect) rect{ int w = baseImage.size.width; int h = baseImage.size.... 阅读全文
posted @ 2013-11-29 15:24 沙影无痕 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 使用UIImagePickerController拍照或者视频选择问题cameraUI.mediaTypes = [[NSArray alloc] initWithObjects: (NSString *) kUTTypeMovie, nil];kUTTypeImage对应拍照kUTTypeMovi... 阅读全文
posted @ 2013-11-29 11:56 沙影无痕 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Implicit conversion from enumeration type 'enum CGImageAlphaInfo' to different enumeration type 'CGBitmapInfo' (aka 'enum CGBitmapInfo')在使用xcode5 sdk ... 阅读全文
posted @ 2013-11-19 14:43 沙影无痕 阅读(126) 评论(0) 推荐(0) 编辑
摘要: ios7下UIBarButtonItem 边距偏大,看起来感觉不是很舒服;搜索方法,得到解决方案如下://////////////////////////////////@interface UINavigationItem (margin)@end@implementation UINavigat... 阅读全文
posted @ 2013-11-15 12:53 沙影无痕 阅读(229) 评论(0) 推荐(0) 编辑
摘要: - (UIViewController*)topViewController { return [selftopViewControllerWithRootViewController:[UIApplicationsharedApplication].keyWindow.rootViewContro... 阅读全文
posted @ 2013-10-30 10:02 沙影无痕 阅读(108) 评论(0) 推荐(0) 编辑
摘要: - (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar searchBar.showsCancelButton = YES; for (UIView *subView in searchBar.subviews) { if... 阅读全文
posted @ 2013-10-28 14:32 沙影无痕 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 在statusBar 后面添加一层视图方法:在AppDelegate.h 里面定义一个 变量 UIWindow *statusBarBack;在AppDelegate.m里面进行初始化statusBarBack = [[UIWindow alloc]initWithFrame:[UIApplicat... 阅读全文
posted @ 2013-10-28 11:25 沙影无痕 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 最近在使用xmppframwork来实现一个聊天应用,碰到了一个问题,应用进入后台以后,就接收不到消息了;怎么样才能使应用被切到后台时,应用中的网络连接仍然接收数据并维持存活(像QQ iphone 一样),下面一步一步来分析。针对iOS应用的状态,存在以下三种情况:1)若iOS应用为活动状态... 阅读全文
posted @ 2013-10-10 13:48 沙影无痕 阅读(222) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页