- 博客(8)
- 收藏
- 关注
原创 tableheaderview覆盖了部分cell的解决方法
需要在viewDidLayoutSubviews中调用systemLayoutSizeFittingSize方法计算tableheaderview的frame,然后设置tableheaderview.//计算headerView的frame- (UIView *)getHeaderView:(UIView *)xibHeader{ CGRect rect = xibHeader.frame;
2015-11-30 17:04:29
1872
1
转载 cocoapods使用
1.更新RUBY gem sources --remove https://rubygems.org/ gem sources -a https://ruby.taobao.org/ 2.安装cocoapod sudo gem install cocoapods 3.cd 工程目录到终端,创建podfile vim podfile 编辑podfile platform:i
2015-11-30 13:04:25
380
原创 iOS 按钮超过父视图范围无法响应事件的处理方法
当按钮超过了父视图范围,点击是没有反应的。因为消息的传递是从最下层的父视图开始调用hittest方法。- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event { UIView *view = [super hitTest:point withEvent:event]; return view; }当存在view时才
2015-11-13 13:31:40
8936
2
原创 iOS 调用系统自带高德地图导航
- (void)openMapWithLat:(NSString *)lat Lon:(NSString *)lon Desc:(NSString *)desc; { CLLocationCoordinate2D endCoor = CLLocationCoordinate2DMake([lat floatValue], [lon floatValue]); MKMapItem *
2014-12-17 18:35:38
1139
原创 iOS 中的重要功能--推送
1、首先进入开发者中心中创建应用的APP ID(bundle ID). 2. 创建完毕后点击app id ,然后点击edit,到Push Notifications中创建证书 3.证书创建完毕,双击安装,可以在钥匙串中看到: 4.分别右键导出证书和密钥,命名为cert.p12和key.p12,保存到桌面的一个文件夹下 5.打开终端,cd命令更改路径到这个文件夹。再终
2014-12-15 14:54:48
677
1
原创 iOS改变电池栏字体颜色
plist文件里添加键:View controller-based status bar appearance,设置为NO,然后在view controller里边加上: [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault];//状态栏是黑字 [[UIApplication sharedApp
2014-12-15 14:39:19
1337
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人