摘要: //self.navigationController.navigationBarHidden = YES;//注释掉这行即可 self.navigationController.navigationBar.hidden = YES;//隐藏导航栏只对本控制器有用 阅读全文
posted @ 2018-04-23 18:08 tryFighting 阅读(248) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"//折半查找int searchItem(int array[], int len, int key); int main(int argc, char const *argv[]) {int array[] = {1,23,34,12,2,3,45,6,7,8} 阅读全文
posted @ 2018-04-23 17:54 tryFighting 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 把本地项目推送到Github官方网站 由于本地Git仓库和GitHub仓库之间的传输是通过SSH加密的,所以需要设置的地方 第一步:创建SSH Key。在用户目录下,看看有没有id_rsa和id_rsa.pub ssh-keygen -t rsa -C "youremail@example.com" 阅读全文
posted @ 2018-04-23 17:52 tryFighting 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Cocoapods:用Ruby写的,负责管理iOS以及OS X系统下的一个第三方类库管理工具 引入第三方库时,它可以自动为我们完成各种配置,配置编译阶段,连接器选项,甚至ARC环境下的-fno-objc-arc配置等等 1.升级Ruby环境 sudo gem update -n /usr/local 阅读全文
posted @ 2018-04-23 17:49 tryFighting 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #mark 滚动弹幕 列表中留有7条记录 大于7条时删除并指引表视图向上滑动 - (void)addRowActionWithContent:(NSString *)str { if (self.dataMutArray.count > 7) { [self.dataMutArray removeL 阅读全文
posted @ 2018-01-22 16:24 tryFighting 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: 受iOS 9 上 http 限制 需要在info.plist文件添加必要string <key>LSApplicationQueriesSchemes</key> <array> <string>mqqopensdkapiv2</string> <string>mqqopensdkapiv3</st 阅读全文
posted @ 2018-01-16 18:11 tryFighting 阅读(1629) 评论(0) 推荐(0) 编辑
摘要: if ([self class] == [HomeViewController class]||[self class] == [ComprehensivefinanceViewController class]||[self class] == [MyCenterViewController cl 阅读全文
posted @ 2018-01-15 18:37 tryFighting 阅读(217) 评论(0) 推荐(0) 编辑
摘要: #import <objc/runtime.h> @interface UINavigationController (Transition)<UIGestureRecognizerDelegate> - (void)transitionPanGestureDidLoad; @end @interf 阅读全文
posted @ 2018-01-15 18:32 tryFighting 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 捕捉异常类头文件.h文件 ///抓捕异常处理 void uncaughtExceptionHandler(NSException *exception); 捕捉异常实现文件.m文件 ///抓捕异常处理 void uncaughtExceptionHandler(NSException *except 阅读全文
posted @ 2018-01-03 15:17 tryFighting 阅读(2237) 评论(0) 推荐(0) 编辑
摘要: //在视图中运行操作中进行周期操作 - (void)applicationDidEnterBackground:(UIApplication *)application { [self beingBackgroundUpdateTask]; [self endBackgroundUpdateTask 阅读全文
posted @ 2018-01-02 18:31 tryFighting 阅读(262) 评论(0) 推荐(0) 编辑