- 博客(11)
- 收藏
- 关注
原创 UITableView默认选中第一行,以及获取当前选中的cell
//默认选中TableView第一行,没有动画及滚动效果,动画即滚动效果通过animated,position来设定 [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] animated:NO scrollPosition:UITableViewScrollPositionN
2017-04-15 10:35:15 7108
原创 Setting up CocoaPods master repo 长久无响应
1、那是因为 淘宝的那个镜像(https://ruby.taobao.org/ )已经不可用了。所以我们现在用最新支持的ruby镜像(https://gems.ruby-china.org/) 需要的命令行: $ gem sources -r https://rubygems.org/ (移除旧版本的镜像,如果你不知道你电脑上目前用的是什么镜像,可用 $ gem sour
2017-04-28 10:18:49 362
原创 Xcode运行工程报错-Reason: image not found
dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from: ~/Library/Developer/CoreSimulator/Devices/42EBF880-8D33-4EBB-8ABB-66D000EBBE0A/data/Containers/Bundle/Application/494A7677-
2017-04-25 11:17:04 2693
原创 The dependency `ReactiveCocoa` is not used in any concrete target.(Cocoapods报错)
The dependency `` is not used in any concrete target The dependency `AFNetworking ` is not used in any concrete target1212 CocoaPods再遇困难,前几天电脑重装了系统,所有的开发工具就都装了最新的,当我用CocoaPods的时候,出了一个提示,大概就是我的版本不是
2017-04-25 10:56:30 836
原创 AFNetWorking请求头的设置
AFHTTPRequestOperationManager*manager=[AFHTTPRequestOperationManagermanager];manager.securityPolicy=[AFSecurityPolicypolicyWithPinningMode:AFSSLPinningModeNone];manager.requestSerializer=[AFJSONReques
2017-04-19 09:07:01 2986
原创 [Application]Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' ...
Failed to instantiate the default view controller for UIMainStoryboardFile 'Main' - perhaps the designated entry point is not set? 这是因为给你的StoryBoard没有设置默认显示的controller, 解决方法:
2017-04-17 17:52:34 1218
转载 详解swift和OC以及C语言的混编
前言: Swift 语言出来后,可能新的项目直接使用Swift来开发,但可能在过程中会遇到一些情况,某些已用OC写好的类或封装好的模块,不想再在swift 中再写一次,或者有一些第三方使用OC写的,没有swift版本,怎么办?那就使用混编。这个在IOS8后是允许的. 先简单的入手,先研究在同一个工程目录下混合使用的情况.这里主要介绍swift类
2017-04-17 10:14:16 2279
转载 自定义UISlider的样式
//自定义UISlider的样式和滑块 //轨道图片 UIImage *stetchLeftTrack = [UIImage imageNamed:@"thick"]; UIImage *stetchRightTrack = [UIImage imageNamed:@"thick"]; //滑块图片
2017-04-15 10:46:04 2484
原创 Xcode8提交APP以后,在iTunes connect构建版本中不显示
iOS10、Xcode8升级以后,打包使用Application Loader上传应用时,应用上传成功,但是在商店里却找不到构建版本,连“+”都没。 于是找资料才发现,从iOS10开始,苹果更加注重对用于隐私的保护,app里边如果需要访问用户隐私,必须要做描述,所以要在plist文件中添加描述; 或者在此处勾选需要添加的权限 注意,添加的时候,末尾不要有空格(
2017-04-15 10:40:08 5504
原创 The certificate used to sign "bundle id 名字" has either expired or has been revoked
在真机上运行时,弹出错误 错误提示: The certificate used to sign "bundle id 名字" has either expired or has been revoked. An updated certificate is required to sign and install the application. 本来之前打包时一直报
2017-04-15 10:37:31 736
原创 在Storyboard中设置tableview的secsion以及rows
首先在storyboard中创建了controller ,然后创建了tableview,我是直接创建的tableviewController,道理是相同的。 创建之后是空的tableview,然后我们想直接在tableview中设置Cell的属性布局等。往往我们添加的是多种cell布局,这时候就需要添加Section ,那么我们选中tableview然后将tableview的属性con
2017-04-07 16:40:59 1386
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人