摘要: 那么如何解决这个问题呢?实际上很简单,如果这个 ViewController 是在 TabBarViewController 的 NavigationController 上 Push/Pop 的,那么只需要把 TabBarViewController 的 View 设置一下白色背景就可以了。亲测设... 阅读全文
posted @ 2015-11-04 21:46 Rinpe 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 发送请求出现这个错误Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa error 3840.)" (JSON text did not start with array or ... 阅读全文
posted @ 2015-11-04 11:35 Rinpe 阅读(510) 评论(0) 推荐(0) 编辑
摘要: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.系权限问题,命令行输入:sud... 阅读全文
posted @ 2015-10-30 10:27 Rinpe 阅读(225) 评论(0) 推荐(0) 编辑
摘要: ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from http://ruby.taobao.org/ - bad response Not Found 4... 阅读全文
posted @ 2015-10-30 10:20 Rinpe 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 在navigationController中实现向右滑动 返回功能 系统提供的backbarbuttonitem,不用添加任何代码即可实现向右滑动后退功能,但是往往要对按钮修改样式等时,就需要自定义leftbarbuttonitem,此时向右滑动即失效.通过下面方法即可解决该问题.(本人亲自实验过) 阅读全文
posted @ 2015-10-27 15:08 Rinpe 阅读(1683) 评论(0) 推荐(0) 编辑
摘要: /SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-225/Runtime/PBRequester.m:799 server (https://gsp13-cn.ls.apple.com/localshift) returned error: 504Fail... 阅读全文
posted @ 2015-10-26 13:15 Rinpe 阅读(679) 评论(0) 推荐(0) 编辑
摘要: unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow: ; layer = >出现这个错误是因为没有设置窗口的frameAppDelegate:self.window ... 阅读全文
posted @ 2015-10-19 12:36 Rinpe 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: 重写控制器如下方法即可: 1 - (NSUInteger)supportedInterfaceOrientations 2 3 { 4 5 /* 6 7 UIInterfaceOrientationMaskPortrait 8 9 UIInterfaceOrien... 阅读全文
posted @ 2015-10-17 21:38 Rinpe 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 示例网页:http://m.dianping.com/tuan/deal/moreinfo/11507109移除该网页的返回按钮, 购买链接, 最底部的友情链接代码: NSMutableString *js = [NSMutableString string]; // 删除返回按钮 [js ap... 阅读全文
posted @ 2015-10-17 17:34 Rinpe 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Warning: Attempt to present (要被presented的控制器) on (哪个控制器来presenting) which is already presenting (已经被presenting的控制器)self: 是被presented出来的控制器,self.presen... 阅读全文
posted @ 2015-10-15 14:54 Rinpe 阅读(2762) 评论(0) 推荐(0) 编辑