问题解决方案
文章平均质量分 68
qiummm
阿里测试一枚,目前主要负责淘宝iPad客户端测试。喜欢iOS,喜欢java,善于发现问题并推动解决。在测试理论、用例设计、单元测试、自动化测试、接口测试上有自己的想法并推广给其他同学。
展开
-
删除UserDefault里某个object致app crash的解决过程
最近在做的项目中,需要与NSUserDefaults打交道,比如NSUserDefaults里某个值变更时,需要对其重新save,但在重新save时发生crash,crash log如下:Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFDictionar原创 2014-01-12 22:59:05 · 3365 阅读 · 0 评论 -
UIPopover使用不当引起的crash解决
今天在写UIPopoverDemo时,触发弹出popover时,程序crash。堆栈信息如下:Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController dealloc] reached while popover is still visible.'*原创 2014-01-23 10:15:30 · 2788 阅读 · 0 评论 -
textField和textView的inputAccessoryView属性
inputAccessoryView属性UITextFields and UITextViews have an inputAccessoryView property, which you can set to any view, that is automatically displayed above and animated with the keyboard.Note转载 2014-01-19 22:59:50 · 2039 阅读 · 0 评论 -
iOS启用发邮件的方法
IOS系统框架提供的两种发送Email的方法:openURL 和 MFMailComposeViewController。借助这两个方法,我们可以轻松的在应用里加入如用户反馈这类需要发送邮件的功能。 1.openURL使用openURL调用系统邮箱客户端是我们在IOS3.0以下实现发邮件功能的主要手段。我们可以通过设置url里的相关参数来指定邮件的内容,不过其缺点很明显,这转载 2014-01-19 23:05:11 · 1237 阅读 · 0 评论 -
navigationItem的返回item的title不生效的解决
这两天在做的一个项目中,有A页面需要push出B页面,刚开始使用了UINavigationController,结果A页面push出B页面的时候,B页面上显示的返回的button的title修改不了,尝试在google和stackOverFlow上找答案,都未果。今天重构代码时,干掉了UINavigationController,使用自定义的navigationBar,再修改navigationB转载 2014-01-19 22:53:53 · 3078 阅读 · 0 评论 -
给button添加弧度的方法
avatarImage = [UIButton buttonWithType:UIButtonTypeCustom]; //给按钮加一个白色的板框 avatarImage.layer.borderColor = [[UIColor whiteColor] CGColor]; avatarImage.layer.borderWidth = 1.0转载 2014-01-19 22:56:36 · 3330 阅读 · 0 评论