nsindexpath

    8熱度

    1回答

    我已經搜索到並發現此問題的上一個答案here。問題是標記爲解決方案的答案不起作用。裏面我的tableView:didSelectRowAtIndexPath方法:方法,我有 NSInteger *currentRow = indexPath.row; ,這讓我報警「不兼容的整數指針轉換初始化‘NSInteger的*’(又名‘詮釋*’)與類型的表達式‘NSInteger的’(又名'int')。

    0熱度

    1回答

    的一切,我要去告訴你,我得到的錯誤,那麼我會試着解釋我在做什麼來得到這個錯誤等 2011-11-02 10:17:57.665 code[1327:707] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollP

    4熱度

    2回答

    我想編碼一個重置按鈕,以便當我單擊該按鈕時,所有tableview單元格的附件類型將被設置爲none。 我有一個清晰的概念如何做到這一點,但我對iPhone開發很新,所以我只需要幫助什麼方法來調用。 我認爲我需要採取的步驟:我使用for循環遍歷所有行 - 所以我計算單元格數量(成功完成)。我的問題是,如果附件類型是CheckMark,並且將它設置爲none,我不知道如何檢查每個行/單元。 或者,我

    0熱度

    1回答

    我試圖從我的地址簿中獲取聯繫人。我在我的tableview上顯示數據。首先,我設置tableviewcell的高度。 -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 之後,我實現 - (UITableViewCell *)tableView:(UITabl

    12熱度

    2回答

    我正在使用字典數組填充表視圖。數組和字典的內容被解析沒有問題。但是,該表中填充了[數組數量]的單元格,其內容索引爲0。在我看來,indexPath.row爲所有單元格返回0。我如何使用相應的索引填充每個單元格? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)i

    0熱度

    1回答

    我試圖插入新的對象到我的核心數據結構,讓他們知道他們屬於哪個部分。 這是我的插入方法,我需要添加一個特定的部分到新的記錄。 -(void)insertNewReminderWithSequenceNumber:(int)sequenceNumber { // Create a new instance of the entity managed by the fetched resul

    0熱度

    2回答

    我曾經使用過indexpath的值,該應用在iOS5中退出。誰能說出它的確切原因?我紅很多問題&與此相關的答案。但仍然困惑。 這是什麼原因? 我們應該採取什麼措施來防止崩潰? 我在哪裏可以知道即將推出的iOS版本的這些類型的代碼更改? 更新: 這裏墜毀代碼: MyClass.h @interface MyClass:UIViewController <......> { ... NSInd

    1熱度

    2回答

    我正在開發中,我已宣佈伊娃作爲NSIndexPath對象一個應用程序,但它表明在didSelectRowAtIndexPath方法NSArray的對象。它是如何表現的,我身邊發生了什麼錯誤。 請幫幫我。 在此先感謝。 示例代碼: //.h file: NSIndexPath *lastIndexPath; //.m file: - (UITableViewCell *)tableView

    5熱度

    3回答

    這是我的的cellForRowAtIndexPath的UITableView委託方法刪節代碼: - (UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusa

    2熱度

    3回答

    定位的iOS 5.0我看到SIGABRT當我嘗試訪問NSIndexPath對象的行或部分的屬性在以下代碼: NSIndexPath* path = [[NSIndexPath alloc] initWithIndex:0]; int row = path.row; //SIGABRT int section = path.section;//SIGABRT 這個例子表明使用indexPat