摘要:
首先遵循UIGestureRecognizerDelegate协议 self.navigationController.interactivePopGestureRecognizer.enabled = YES; self.navigationController.interactivePopG... 阅读全文
摘要:
现在.m文件中定义UIImageView *navBarHairlineImageView;在- (void)viewWillAppear:(BOOL)animated方法中navBarHairlineImageView.hidden = YES;然后自定义方法//实现找出底部横线的函数- (UII... 阅读全文
摘要:
UIButton *selectButton = [UIButton buttonWithType:UIButtonTypeCustom]; selectButton.frame = CGRectMake(passLabel.frame.origin.x, passLabel.frame.or... 阅读全文
摘要:
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 30)];//设置label要显示的字符串的内容 NSMutableAttributedString *str = [[NSMutableAttribut... 阅读全文
摘要:
电话 UIWebView *callWebView = [[UIWebView alloc] init]; NSURL *telURL = [NSURL URLWithString:@"电话号码"]; [callWebView loadRequest:[NSURLRequest request... 阅读全文
摘要:
xcode6之后,系统取消了pch文件,如果开发者需要,必须自己创建pch文件具体方法是command+N新建文件,在弹出的窗口选择ios列表下的other中的PCH File,点击继续,我们创建好了一个pch文件,但是现在并不能用,还需要一些配置。下面我们在buildSettings中搜索pref... 阅读全文
摘要:
1、自定义方法+(CGFloat)heightForName:(NSString *)string;2、实现自定义方法+ (CGFloat)heightForName:(NSString *)string{//宽度和label宽度相同 CGSize size = CGSizeMake(WIDTH ... 阅读全文
摘要:
沙盒特点:安全性比较高,数据不易丢失,常用于存储用户信息,在开发中做一些数据的缓存功能,通常也将数据存入本地沙盒目录中获取沙盒路径:1、NSArray *array = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserD... 阅读全文