網頁

2012年5月10日 星期四

Xcode Debug



Table Cell identifier未設

  
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"Cell"; //CellIdentifier
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    
    // Configure the cell...
    
    return cell;
}


這表示可能.h有宣告的函式 .m沒宣告實作




這警告表示窗口未接 要拉藍線關聯  否則 View Controller 的identifier要設定



  
- (void) loadSetting
{

    FontSetting *Settingpage = [self.storyboard instantiateViewControllerWithIdentifier:@"identifierSetting"];
 [self.navigationController pushViewController:Settingpage animated: YES];
 
}
這警告表示.h的 Delegate在.m未使用



@interface CPDPieChartViewController : UIViewController  
@end

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。