- 博客(18)
- 收藏
- 关注
原创 Mac系统占用空间大、空间不够、查看系统文件大小分布
https://www.cnblogs.com/yajunLi/p/7008578.html?utm_source=itdadao&utm_medium=referraldu -sh *
2019-02-15 15:34:34
2440
原创 CocoaPods 中删除不需要的第三方
1...打开Podfile 找到不需要的类库,直接删除2...打开终端cd到当前项目的根目录下重新执行pod install --verbose --no-repo-update命令(更新一下)3...更新完成就删除成功了.... but but.......编译没有问题--运行时候----报错的请继续往下看,,,, 解决方法----(1----)找到...
2018-11-14 10:45:22
331
原创 CocoaPods的使用--
此文章前提是假设你的电脑已经正确安装了CocoaPods,安装方法此处不做赘述。安装教程点这里CocoaPods的安装教程以下是常用CocoaPods终端命令: //创建默认的Podfile$ pod init //第一次使用安装框架$ pod install //安装框架 不更新本地索引 速度快$ pod install --no-repo-update //今后 添加 删除框架 或...
2018-11-14 09:48:08
738
原创 ios键盘类型
1、UIKeyboardTypeDefault: 2、UIKeyboardTypeASCIICapable: 3、UIKeyboardTypeNumbersAndPunctuation: 4、UIKeyboardTypeURL: 5、UIKeyboardTypeNumberPad: ...
2018-08-22 09:49:23
1516
原创 UItableView
1.让其Section header footer不动- (void)scrollViewDidScroll:(UIScrollView *)scrollView { UITableView *tableview = (UITableView *)scrollView; CGFloat sectionHeaderHeight =100; CGFloat s
2017-02-22 14:02:09
205
原创 手势处理 ios
UIWindow *window = [[UIApplicationsharedApplication].windowslastObject]; UITapGestureRecognizer * singleRecognizer = [[UITapGestureRecognizeralloc] initWithTarget:selfaction:@selecto
2017-01-22 09:46:01
268
原创 线程
子线程 dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,0), ^{ [selfpostFile]; }); 主线程 dispatch_async(dispatch_get_main_queue(), ^{
2016-12-20 14:32:45
269
转载 延时执行
Method1:performSelector[self performSelector:@selector(delayMethod) withObject:nil/*可传任意类型参数*/ afterDelay:2.0];注:此方法是一种非阻塞的执行方式,未找到取消执行的方法。程序运行结束2015-08-31 10:56:59.361 CJDelayMethod[1080:3960
2016-09-08 10:48:22
247
转载 xcode,插件
Xcode 安装插件手误选择了「Skip Bundle」后需要重新允许「Load Bundle」的解决办法Xcode 安装插件手误选择了「Skip Bundle」后需要重新允许「Load Bundle」的解决方法在 Mac 终端输入命令:1 # 这里的7.1代表 Xcode 的版本号2 defaults delete com.apple.dt.Xcode DVTPlugI
2016-08-09 11:32:04
156
原创 KVO
//添加监听者[self.tableView addObserver: self forKeyPath: @"contentOffset" options: NSKeyValueObservingOptionNew context: nil];/** * 监听属性值发生改变时回调 */- (void)observeValueForKeyPath:(NSString *)ke
2016-08-08 09:46:55
330
原创 ios NSDictionary
NSDictionary:NSDictionary *dic2 = [NSDictionary dictionaryWithObjectsAndKeys: @"value1", @"key1", @"value2", @"key2",
2016-08-02 14:52:19
241
原创 IOS NSArray
检测数据中是否包含指定的对象元素- (BOOL)containsObject:(id)anObject;[array containsObject:@"tom"]; YEShttp://blog.youkuaiyun.com/shx_yi/article/details/8687368
2016-08-02 11:50:17
173
原创 Block
第二种方法:使用Block作为property,实现两个页面之间传值,先看看NextViewController文件中的内容,//NextViewController.h 文件@interface NextViewController : UIViewController@property (nonatomic, copy) void (^NextViewControllerBlock
2016-08-02 11:40:01
182
原创 NSString ios
NSString分隔:NSString*string =@"sdfsfsfsAdfsdf";NSArray *array = [string componentsSeparatedByString:@"A"]; //从字符A中分隔成2个元素的数组NSLog(@"array:%@",array); //结果是adfsfsfs和dfsdf
2016-08-02 11:09:36
228
原创 下拉刷新 ios
上啦刷新@property (nonatomic , assign)NSInteger i; [self.tableView addLegendHeaderWithRefreshingTarget:self refreshingAction:@selector(headerRereshing)]; [self.tableView addLegendFooterWithRef
2016-08-02 10:54:00
232
转载 ios 通知
通知页面: [[NSNotificationCenter defaultCenter] postNotificationName:@"Notification_GetUserProfileSuccess" object:self userInfo:nil];执行通知页面:销毁通知- (void)dealloc{ [[NSNotificatio
2016-08-02 10:50:21
250
原创 navigationController 多级返回
//连续返回两级int index=[[self.navigationController viewControllers]indexOfObject:self];[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:index-2]an
2016-08-02 10:46:28
407
原创 本地存取 NSUserDefaults ios
存:[[NSUserDefaults standardUserDefaults] setObject:@"2" forKey:@"name"];取: NSString * name = [[NSUserDefaults standardUserDefaults] stringForKey:@"name"]; 删除: [[NSUserDefaultsstand
2016-08-02 10:40:12
199
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人