其上tableview
對號功能,所有工作在iPhone 6罰款,但面臨的問題與iPhone 5s.If我選擇排,查馬克的功能不working.I我不能我的iPhone應用程序找出確切的原因。我該如何檢查問題?請幫幫我。 這裏是我UITableView
iPhone應用程序不工作在iPhone 5S的iOS 9.2
委託方法代碼:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
selectedTransIdArray = [NSMutableArray arrayWithArray:userSession.transactionArray];
NSLog(@"selectedTransIdArray first %@",selectedTransIdArray);
NSString *state = [dataTransArray objectAtIndex:indexPath.row];
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
if(cell.accessoryType == UITableViewCellAccessoryNone)
{
cell.accessoryType = UITableViewCellAccessoryCheckmark;
[selectedTransIdArray addObject:state];
userSession.transactionArray = selectedTransIdArray;
}
else
{
cell.accessoryType = UITableViewCellAccessoryNone;
[selectedTransIdArray removeObject:state];
userSession.transactionArray = selectedTransIdArray;
}
NSLog(@"selectedTransIdArray %@",selectedTransIdArray);
userSession.transactionArray = selectedTransIdArray;
[[NSUserDefaults standardUserDefaults] setObject:selectedTransIdArray forKey:@"aKey"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
你是什麼勾選功能的意思。你可以請你發佈你的代碼嗎? – Arun
你添加了什麼功能?你有沒有在故事板或編程方式添加用戶界面。 –
你確定你的桌子視圖在iPhone 5上不太寬嗎? – rmaddy