摘要://设置网络监听 - (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];
阅读全文
摘要:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app'
阅读全文