摘要:
1.其它颜色 UIColor *color = [UIColor colorWithRed:a green:b blue:c alpha:d];//a,b,c,d 范围为0~1 2.白色 UIColor *myColor = [UIColor colorWithWhite:0.5 alpha:0.8 阅读全文
摘要:
//设置网络监听 - (void)monitorNetworking { //监听网络状态 AFNetworkReachabilityManager *manager = [AFNetworkReachabilityManager sharedManager]; //显然是枚举值 /* typedef NS_ENUM(NSInteger, AF... 阅读全文
摘要:
-(void)createAlerViewWithTitle:(NSString *)title message:(NSString *)message{ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:me 阅读全文
摘要:
//设置播放列表 [self.tableView selectRowAtIndexPath:[NSIndexPath indexPathForRow:self.indexPath inSection:0] animated:YES scrollPosition:UITableViewScrollPo 阅读全文
摘要:
[[[self.navigationController.navigationBar subviews] firstObject] setAlpha:0]; 隐藏iOS导航条底部与self.view的分界线 [self.navigationController.navigationBar setBa 阅读全文
摘要:
UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView *visualEffectView = [[UIVisualEffectView alloc]initWi 阅读全文
摘要:
[redView mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self.view.mas_left).offset(0);//使左边等于self.view的左边,间距为0 make.top.equalTo(s 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)]; scrollView.backgroundColor = [UIColor redColor]; // 是否支持... 阅读全文
摘要:
//字符串截取var str_sub = "123400056789"//将String转化为NSString再截取var ns1 = (str_sub as NSString).substringFromIndex(7)print("from截取后 ",ns1) //从index7开始到完,包括i 阅读全文
摘要:
self.TextField.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:1.0]; 阅读全文