随笔分类 - Other
摘要:1: NSUInteger rowCount = [self.tableView numberOfRowsInSection:0]; NSIndexPath* indexPath = [NSIndexPath indexPathForRow:rowCount-1 inSection:0]; [_ta
阅读全文
摘要:方法一遍历法: 在你需要隐藏的地方调用如下代码 [self findlineviw:self.navigationBar].hidden = YES; -(UIImageView*)findlineviw:(UIView*)view{ if ([view isKindOfClass:[UIImage
阅读全文
摘要:// 排版时,注意logical coordinate space和device coordinate space的区别,注意frame和bounds的区别! - (void)loadView { // ... // 计算Custom Content View的Rect if (!_supportF
阅读全文
摘要:for (UIView *tabbarbutton in self.subviews) { // NSLog(@"%@",tabbarbutton); if ([tabbarbutton isKindOfClass:NSClassFromString(@"_UITabBarBackgroundVie
阅读全文
摘要:1.UI准备工作 A. 定义一个全局的 NSURLSessionDownloadTask:下载管理句柄 由其负责所有的网络操作请求 @interface ViewController () { // 下载句柄 NSURLSessionDownloadTask *_downloadTask; } .h
阅读全文
摘要:16进制字符转10进制数字 如#FFFFFF转化10进制 NSString *s1 = @”FF”; unsigned long red = strtoul([s1 UTF8String],0,16); NSString *s2 = @”FF”; unsigned long red = strtou
阅读全文

浙公网安备 33010602011771号