随笔分类 -  IOS

上一页 1 ··· 3 4 5 6 7 8 下一页
摘要:这个错误是由于appKey所在账号没有微博高级写入接口权限, 需要申请, 详见:http://www.mamicode.com/info-detail-936938.html 阅读全文
posted @ 2015-11-19 10:02 Rinpe 阅读(1130) 评论(0) 推荐(0)
摘要:代码:UIImage *normal = [[UIImage imageNamed:@"tabbar_home_default"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];UIImage *selected = [[UII... 阅读全文
posted @ 2015-11-15 18:42 Rinpe 阅读(385) 评论(0) 推荐(0)
摘要:我出现这个错误是因为我的自定义控件的名字和项目中一个控制器的名字很像控制器DDGuessYourLikeViewController自定义控件DDGuessYourLikeView默认的, 系统会自动加载控制器View, 如果发现bundle中有DDGuessYourLikeViewControll... 阅读全文
posted @ 2015-11-13 17:22 Rinpe 阅读(159) 评论(0) 推荐(0)
摘要:解决方法:重写cell的setFrame方法即可-(void)setFrame:(CGRect)frame{ frame.size.width=self.window.frame.size.width; [supersetFrame:frame]; } 阅读全文
posted @ 2015-11-12 10:51 Rinpe 阅读(201) 评论(0) 推荐(0)
摘要:首先确定是否有用到storyboard如果没有用到的话,需要将涉及到storyboard的地方修改:1 删除plist文件里的设置2 修改程序中使用到storyboard的地方如果确实有使用storyboard,可能的解决方案:1 将storyboard的target membership 勾选上2... 阅读全文
posted @ 2015-11-08 12:14 Rinpe 阅读(265) 评论(0) 推荐(0)
摘要:那么如何解决这个问题呢?实际上很简单,如果这个 ViewController 是在 TabBarViewController 的 NavigationController 上 Push/Pop 的,那么只需要把 TabBarViewController 的 View 设置一下白色背景就可以了。亲测设... 阅读全文
posted @ 2015-11-04 21:46 Rinpe 阅读(407) 评论(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 阅读(526) 评论(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 阅读(234) 评论(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 阅读(450) 评论(0) 推荐(0)
摘要:在navigationController中实现向右滑动 返回功能 系统提供的backbarbuttonitem,不用添加任何代码即可实现向右滑动后退功能,但是往往要对按钮修改样式等时,就需要自定义leftbarbuttonitem,此时向右滑动即失效.通过下面方法即可解决该问题.(本人亲自实验过) 阅读全文
posted @ 2015-10-27 15:08 Rinpe 阅读(1701) 评论(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 阅读(694) 评论(0) 推荐(0)
摘要:unexpected nil window in _UIApplicationHandleEventFromQueueEvent, _windowServerHitTestWindow: ; layer = >出现这个错误是因为没有设置窗口的frameAppDelegate:self.window ... 阅读全文
posted @ 2015-10-19 12:36 Rinpe 阅读(1085) 评论(0) 推荐(0)
摘要:重写控制器如下方法即可: 1 - (NSUInteger)supportedInterfaceOrientations 2 3 { 4 5 /* 6 7 UIInterfaceOrientationMaskPortrait 8 9 UIInterfaceOrien... 阅读全文
posted @ 2015-10-17 21:38 Rinpe 阅读(216) 评论(0) 推荐(0)
摘要:示例网页:http://m.dianping.com/tuan/deal/moreinfo/11507109移除该网页的返回按钮, 购买链接, 最底部的友情链接代码: NSMutableString *js = [NSMutableString string]; // 删除返回按钮 [js ap... 阅读全文
posted @ 2015-10-17 17:34 Rinpe 阅读(255) 评论(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 阅读(2796) 评论(0) 推荐(0)
摘要:1 #import "ViewController.h" 2 #import <AddressBookUI/AddressBookUI.h> 3 4 @interface ViewController () <ABPeoplePickerNavigationControllerDelegate> 5 阅读全文
posted @ 2015-08-28 13:50 Rinpe 阅读(331) 评论(0) 推荐(0)
摘要:距离传感器(Proximity Sensor) 用于检测是否有其他物体靠近设备屏幕 当你打电话或接电话时将电话屏幕贴近耳边,iPhone会自动关闭屏幕 ,好处是 节省电量 防止耳朵或面部不小心触摸屏幕而引发一些不想要的意外操作 1 #import "ViewController.h" 2 3 @in 阅读全文
posted @ 2015-08-24 16:58 Rinpe 阅读(441) 评论(0) 推荐(0)
摘要:iOS自带的Shake监控API(非常简单) 判断摇一摇的步骤:实现3个摇一摇监听方法(在AppDelegate中实现) - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event /** 检测到摇动 */ - (voi 阅读全文
posted @ 2015-08-24 16:54 Rinpe 阅读(198) 评论(0) 推荐(0)
摘要:加速计的作用 用于检测设备的运动(比如摇晃) 加速计的经典应用场景 摇一摇 计步器 ********************************** Core Motion获取数据的两种方式 push 实时采集所有数据(采集频率高) pull 在有需要的时候,再主动去采集数据 1 #import 阅读全文
posted @ 2015-08-24 16:48 Rinpe 阅读(326) 评论(0) 推荐(0)
摘要:Core Bluetooth的基本常识 每个蓝牙4.0设备都是通过服务(Service)和特征(Characteristic)来展示自己的 一个设备必然包含一个或多个服务,每个服务下面又包含若干个特征 特征是与外界交互的最小单位 比如说,一台蓝牙4.0设备,用特征A来描述自己的出厂信息,用特征B来收 阅读全文
posted @ 2015-08-24 16:39 Rinpe 阅读(246) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 下一页