07 2014 档案
摘要:UIPageControl *pageControl = [[UIPageControl alloc] init]; pageControl.center = CGPointMake(w * 0.5, h - 20); pageControl.bounds = CGRectMa...
阅读全文
摘要://1.创建图片 _userImage = [[UIImageView alloc]init]; //2.设置图片圆角 _userImage.layer.cornerRadius = 33; _userImage.layer.masksToBounds = YES;...
阅读全文
摘要:_scrollView = [[UIScrollView alloc] init]; //height = 0:禁止垂直方向滚动 _scrollView.contentSize = CGSizeMake(kTwo * kScreenW, 0); //不显示水平方向的滚动...
阅读全文
摘要:照此方法打开引用你这个图片的sb或者xib:然后搜索你的这个图片名称:删除这个图片名称的引用。如果还是不行的话,就删除此sb或xib文件然后重新创建。
阅读全文
摘要:- (void)viewDidLoad{ [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor];}
阅读全文
摘要:[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex:?] animated:YES];或for (UIViewController *temp ...
阅读全文
摘要:1.把当前时间转为字符串 (NSDate与北京时间相隔8小时,格式化之后就是北京时间) NSDate *date = [NSDate date]; NSDateFormatter *dateFormat = [[NSDateFormatter alloc]init]; [dateFo...
阅读全文
摘要:#pragma mark - 保存数据到本地Plist文件中- (void)saveValidateCountWithDate:(NSString *)date count:(NSString *)count fileName:(NSString *)fileName{ //1.调用方法...
阅读全文
摘要:@interface RootViewController (){ UIView *view1; UIView *view2; int flag;}@end@implementation RootViewController- (void)viewDidLoad{ [s...
阅读全文