查看静态库支持的架构
访问公共的成员变量(@plblic声明的)
@public
float height;
访问: stu->height = 10;
+方法,取消将要执行的方法
[NSObjectcancelPreviousPerformRequestsWithTarget:selfselector:@selector(aaa:)object:nil];
隐藏tableview多余的横线
self.tableView.tableFooterView = [[UIView alloc] init];
怎么在不新建一个Cell的情况下调整separaLine的位置?
_myTableView.separatorInset = UIEdgeInsetsMake(0, 100, 0, 0);
怎么点击self.view就让键盘收起,需要添加一个tapGestures么?
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event2{
[self.view endEditing:YES];
}
怎么把tableview里cell的小对勾的颜色改成别的颜色?
_mTableView.tintColor = [UIColor redColor];
怎么改变uitextfield placeholder的颜色和位置?继承uitextfield,重写这个方法
- (void) drawPlaceholderInRect:(CGRect)rect {
[[UIColor blueColor] setFill];
[self.placeholder drawInRect:rect withFont:self.font lineBreakMode:UILineBreakModeT
}
/// 取消tableview选中
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPathanimated:NO];
}
获取当前app版本号[[[NSBundlemainBundle] infoDictionary]objectForKey:@"CFBundleShortVersionString"]]
定时器停止
[_timersetFireDate:[NSDatedistantFuture]];
定时器启动
[_timersetFireDate:[NSDatedistantPast]];
//防止屏幕暗掉锁屏
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];