0.分割線
[self.TableViewAccount setSeparatorInset:UIEdgeInsetsMake(0, 20, 0, 20)];
1.tableview點沒點都一樣
cell.selectionStyle = UITableViewCellSelectionStyleNone;
2.去掉tableview分割線
self.tableViewInstallationDetails.separatorStyle = UITableViewCellSeparatorStyleNone;
3.iOS10 字體顯示不全
label.adjustsFontSizeToFitWidth = YES;//iOS10 字顯示不全 設置成YES就可以啦
4.button 上的字左對齊
buttonAgreement.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;// 這行代碼,把按鈕的內容(控件)
5.在button中找cell
ShoppingListCell * cell = (ShoppingListCell *)[_tableViewShoppingList cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i? inSection:0]];
//一個section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
//一個cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3 inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath,nil] withRowAnimation:UITableViewRowAnimationNone];
6.后臺播放音頻的方法
7.添加手勢使鍵盤下落
UITapGestureRecognizer * singleTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(clickSingleTap)];
[self.view addGestureRecognizer:singleTap];
#pragma mark - 手勢? 鍵盤下落
-(void)clickSingleTap
{
[self.view endEditing:YES];
}