self.tableView = [[UITableView alloc] initWithFrame:self.tableView.frame style:UITableViewStyleGrouped];
不用init阿阿阿阿阿 幹!
I put the UITableView in storyboard. The problem is that I can not update data when I call [self.tableView reloadData]. It spent me two days to solve the problem. Take this code away
self.tableView = [[UITableView alloc] initWithFrame:self.tableView.frame style:UITableViewStyleGrouped];Fuck! I don't need to init my tableView in code or it will reference newer instance.
另外
+ (UIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;
每個值都要除以255阿阿阿阿阿阿,不然永遠是白色
沒有留言:
張貼留言