2016-01-20 52 views

回答

4

indexPath.row沒有返回NSIntegerint值。試試這個

NSNumber *num=[NSNumber numberWithInteger:indexPath.row]; 
+0

它的正常工作謝謝:) –

2

你可以使用盒裝表達式。這裏你怎麼做:

NSNumber *num = @(indexPath.row]); 
    [HUD showWhileExecuting:@selector(callingMethod:) onTarget:self withObject:num animated:YES]; 

這將轉換您的號碼與正確的格式;

讓我知道,如果這可以幫助您:)

+0

雅它workinf罰款:) –

相關問題