- 博客(7)
- 收藏
- 关注
原创 UITableView指定Cell的点击区域
写在自定义的cell类里- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{ CGPoint pt = [self.contentView convertPoint:point toView:self.clickView]; if ([self.clickView pointInside:pt withEven
2015-02-25 17:55:18
2386
原创 Swift计算字符串高度,宽度,size方法
计算字符串的高度 swift的原生方法名,基本跟OC一致 OC旧方法, 用了会警告 CGSize size = [self.message sizeWithFont:[UIFont systemFontOfSize:17] constrainedToSize:CGSizeMake(200, 9999)];OC新方法 CGSize size = [topicModel.content
2015-02-25 17:28:10
8943
转载 iOS8 PUSH解决方法
- (void)registerForRemoteNotificationTypes:(UIRemoteNotificationType)types NS_DEPRECATED_IOS(3_0, 8_0,"Please use registerForRemoteNotifications and registerUserNotificationSettings: instead")
2014-11-06 11:23:44
838
原创 UITableView Controller报错解决方法
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect
2014-10-29 21:07:17
744
原创 ios UITextView bug 输入文字跳动bug问题 (・ˍ・*)
ios UITextView 输入中文时文字跳动问题当输入中文文字多于显示的textview框时,最后一行的文字有时候会因为输入的时候而跳动把最后一行的文字盖住一半,再输入时却又跳起来显示.这是什么诡异的bug,在调整公司项目的时候,出现了这个问题以前没碰到过.特么的我还以为是公司自定义的textview有问题,重写了之后还是存在这个问题,于是我新建了个新的项目专门调试这个textvi
2014-10-29 19:47:12
6463
原创 UITabBarController 和 UINavigationController 的 popToRootViewController
UITabBarController 的每一个Tab上是一个UINavigationController,当一个子viewcontroller 里面 popToRootViewController :YES,紧接着 UITabBarController setselectedindex:N,就会出现UITabBarController 不见了,但是进入子viewcontroller的时候会闪一下,
2014-10-19 14:45:51
2160
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人