开发者

Make each UITableView cell open new views?

How do you make eac开发者_C百科h cell in a UITableView open a new view or .xib? An easy tutorial would be helpful.


Hope Helpful for U...

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
 {
       if(indexPath.row==0)
       {
              //Open New View select on 1st row
       }
       if(indexPath.row==1)
       {
               //Open New View select on 2st row
       }

 }


See the following links

http://adeem.me/blog/2009/05/19/iphone-programming-tutorial-part-1-uitableview-using-nsarray/

Write your navigation code here,

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜