2012-04-19 67 views
-1

我的源代碼www.point-star.net/projects/ios_download/page.zip如何從我的表格視圖單元打開Uipageview控制器視圖

請點擊書2.您可以查看UITableviewCell。我需要從這些tableview單元打開我的頁面視圖控制器頁面。

Page view is working->請檢查app1中的book1鏈接。謝謝

+0

當我加載並在模擬器中查看您的應用程序時,我只能看到一個Google網頁。 – 2012-04-19 04:16:07

+0

請使用下面的跳過頁面跳過按鈕跳過按鈕 – Suppry 2012-04-19 04:34:43

+0

請不要將您的源代碼作爲壓縮文件添加,而是作爲粘貼或GitHub鏈接添加,以防止它被刪除。 – Michal 2015-01-27 08:57:27

回答

0

我無法運行你的代碼。也許你需要執行didSelectRow

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 
    [self presentViewController:YourSecondViewController animated:YES completion:^{ 
     NSLog(@"View Presented!"); 
    } 
} 
0

根據你的問題嘗試將數據從arrayselected到索引處的數組推送到下一個viewcontroller中的另一個字典實例。

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 

    // if you want to use the current value of row 
    dictionaryforanotherview = [Arrayinthisview objectAtIndex:indexPath.row]; 

    //get that show detail controller going 
    mypageviewcontroller *hola = [[mypageviewcontroller alloc] initWithNibName:@"mypageviewcontroller" bundle:[UtilityQVC resourceBundle]]; 
    [thisviewcontroller.navigationController pushViewController:hola animated:YES]; 
} 
相關問題