![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
积累
Wx_鑫
这个作者很懒,什么都没留下…
展开
-
iOS_英文单词积累
Profile 描述文件 Device Management 设备管理 Vertification 验证原创 2016-04-25 11:49:11 · 437 阅读 · 0 评论 -
使用 Storyboard 用到的问题
问题: Application tried to push a nil view controller on target UINavigationController: 0x7b98940.原因: 因为在使用 Storyboard 的时候,self.storyboard is nil.means you didn’t initialise you master viewcontrolle原创 2016-08-25 22:04:00 · 312 阅读 · 0 评论 -
NSStirng to NSURL and NSURL to NSString
NSString to NSURLNSURL *url = [NSURL URLWithString:@"http://www.web.com"]; NSURL to NSStringNSString *myString = myURL.absoluteString;原创 2016-09-05 11:30:26 · 393 阅读 · 0 评论 -
使用 Storyboard 用到的问题
问题: Application tried to push a nil view controller on target UINavigationController: 0x7b98940.原因: 因为在使用 Storyboard 的时候,self.storyboard is nil.means you didn’t initialise you master viewcontrolle原创 2016-08-25 22:03:08 · 234 阅读 · 0 评论 -
得到 NSDictionary count (个数)
key原创 2016-08-25 21:54:55 · 1360 阅读 · 0 评论 -
UITableView default separator color
CGContextSetRGBStrokeColor ( CGContextRef c, 224.0/255.0, 224.0/255.0, 224.0/255.0, CGFloat alpha);原创 2016-08-25 11:29:41 · 398 阅读 · 0 评论 -
#pragma 的使用
#pragma 最重要的两个使用 1.整理代码 2.防止编译器警告1.整理代码使用 #pragma mark - 来将代码分割成逻辑区块。2.防止编译器警告###并不是很常见 用来防止编译器或者静态分析器的警告。 通过使用#pragma clang diagnostic push/pop,你可以告诉编译器仅仅为某一特定部分的代码(最初的诊断设置在最后的pop被恢复)来忽视特定警告原创 2016-08-23 00:45:59 · 380 阅读 · 0 评论 -
控制台警告“"This application is modifying the autolayout engine from a background thread, which can lead”
需要打开另外一个线程中,进行 UI 更新。Swiftdispatch_async(dispatch_get_main_queue(), { // code here})Objective-cdispatch_async(dispatch_get_main_queue(), ^{ // code here});原创 2016-08-23 00:36:01 · 311 阅读 · 0 评论 -
Push的使用
1.最简单的使用DayTimeViewController *dayTimeVC = [[DayTimeViewController alloc] init]; [self.navigationController pushViewController:dayTimeVC animated:YES];2.Pop到根页面[self.navigationController popToRootV原创 2016-08-23 00:32:06 · 2984 阅读 · 0 评论 -
Split NSString with "." or "," 分割一个带有"."或者","的 string
NSString *fileName = @"save.plist";NSArray *fileNameArray = [fileName componentsSeparatedByString:@"."];NSString *save = fileNameArray[0];NSString *plist = fileNameArray[1];原创 2016-08-31 16:09:43 · 343 阅读 · 0 评论 -
判断图片是否为空
if (UIImagePNGRepresentation(UIImage *image) != nil) { NSLog(@"image != nil"); } UIImagePNGRepresentation (image 的实例化对象)UIImagePNGRepresentation 对图片进行压缩两种实现方法 UIImageJPEGRepresentation原创 2016-08-30 17:12:39 · 3424 阅读 · 0 评论 -
Storyboard 本地化修改
点中 Main.storyboard 文件 找到当前位置将[Localizable Strings]文件类型改为[Interface Builder Cocoa Touch Storyboard] Command + B 之后在将[Interface Builder Cocoa Touch Storyboard]修改回[Localizable Strings] 相当于重新生成了一遍原创 2016-08-30 16:55:49 · 962 阅读 · 0 评论 -
The provisioning profile is expiring soon
The provisioning profile “:” is expiring soon原创 2016-06-23 11:54:36 · 793 阅读 · 0 评论 -
将 NSArray 进行倒序排列
NSArrayNSMutableArray *switchArray = [[NSMutableArray alloc] init];switchArray = [[[frames reverseObjectEnumerator] allObjects] mutableCopy];原创 2016-07-01 15:03:06 · 585 阅读 · 0 评论 -
iOS-控制台的警告
Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. 解决办法:看当前运行的页面,是不是有一个原创 2016-05-18 23:45:32 · 467 阅读 · 0 评论 -
错误积累
1.以后不能同时有两个一样的.m文件在编译,这样会报linker command failed with exit code 1 (use -vto see invocation)这个错误。原创 2016-04-28 16:37:45 · 534 阅读 · 0 评论 -
iOS_时间戳与时间间的互相转化
时间转时间戳 NSString *timeSp = [NSString stringWithFormat:@"%d", (long)[datenow timeIntervalSince1970]]; NSLog(@"timeSp:%@",timeSp); //时间戳的值时间戳转时间(1) NSDate *confromTimesp = [NSDate dateWithTimeIn原创 2016-04-27 10:12:51 · 322 阅读 · 0 评论 -
UITextField 设置键盘样式
textField.keyboardType = UIKeyboardTypeNumberPad; typedef enum { UIKeyboardTypeDefault, 默认键盘,支持所有字符 UIKeyboardTypeASCIICapable, 支持ASCII的默认键盘 UIKeyboardTypeNumbersAndPunctuation, 标准电话键盘,支持+*#转载 2016-08-25 22:07:32 · 2139 阅读 · 0 评论