2010-12-09 29 views
1

在一些地方部分,部分被稱爲NSIntegers不一致類型在UITableViews

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 

但在NSIndexPath,它們被明確定義爲NSUIntegers。

section 
An index number identifying a section in a table view. (read-only) 

@property(readonly) NSUInteger section 

除了明顯的溢出影響(必須是一個真正的大表),這對我來說創造了很多的煩惱,因爲我打開符號比較編譯器警告選項。

任何人都知道這個有效的原因,還是隻是一個錯誤?

回答

0

在這一點上,我假設這只是糟糕的設計和處理它。好吧。