摘要: 首先遵循UIGestureRecognizerDelegate协议 self.navigationController.interactivePopGestureRecognizer.enabled = YES; self.navigationController.interactivePopG... 阅读全文
posted @ 2015-12-28 16:45 xiaolingling 阅读(1061) 评论(0) 推荐(0) 编辑
摘要: 现在.m文件中定义UIImageView *navBarHairlineImageView;在- (void)viewWillAppear:(BOOL)animated方法中navBarHairlineImageView.hidden = YES;然后自定义方法//实现找出底部横线的函数- (UII... 阅读全文
posted @ 2015-12-28 16:42 xiaolingling 阅读(702) 评论(0) 推荐(0) 编辑
摘要: UIButton *selectButton = [UIButton buttonWithType:UIButtonTypeCustom]; selectButton.frame = CGRectMake(passLabel.frame.origin.x, passLabel.frame.or... 阅读全文
posted @ 2015-12-28 16:39 xiaolingling 阅读(455) 评论(0) 推荐(0) 编辑
摘要: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 30)];//设置label要显示的字符串的内容 NSMutableAttributedString *str = [[NSMutableAttribut... 阅读全文
posted @ 2015-12-28 16:32 xiaolingling 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 电话 UIWebView *callWebView = [[UIWebView alloc] init]; NSURL *telURL = [NSURL URLWithString:@"电话号码"]; [callWebView loadRequest:[NSURLRequest request... 阅读全文
posted @ 2015-12-28 16:25 xiaolingling 阅读(159) 评论(0) 推荐(0) 编辑
摘要: xcode6之后,系统取消了pch文件,如果开发者需要,必须自己创建pch文件具体方法是command+N新建文件,在弹出的窗口选择ios列表下的other中的PCH File,点击继续,我们创建好了一个pch文件,但是现在并不能用,还需要一些配置。下面我们在buildSettings中搜索pref... 阅读全文
posted @ 2015-12-28 16:22 xiaolingling 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 1、自定义方法+(CGFloat)heightForName:(NSString *)string;2、实现自定义方法+ (CGFloat)heightForName:(NSString *)string{//宽度和label宽度相同 CGSize size = CGSizeMake(WIDTH ... 阅读全文
posted @ 2015-12-28 16:11 xiaolingling 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 沙盒特点:安全性比较高,数据不易丢失,常用于存储用户信息,在开发中做一些数据的缓存功能,通常也将数据存入本地沙盒目录中获取沙盒路径:1、NSArray *array = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserD... 阅读全文
posted @ 2015-12-28 14:00 xiaolingling 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 设置导航栏的颜色self.navigationController.navigationBar.barTintColor = [UIColor blackColor]; //设置导航栏字体的颜色大小setTitleTextAttributes后面接字典, [self.navigationCont... 阅读全文
posted @ 2015-12-25 18:29 xiaolingling 阅读(287) 评论(0) 推荐(0) 编辑
摘要: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ textFiled变为第一响应者} 阅读全文
posted @ 2015-12-25 18:23 xiaolingling 阅读(157) 评论(0) 推荐(0) 编辑