在一个基于聊天的应用程序中,我有UITableView一个显示所有朋友姓名的应用程序,didSelectRowAtIndex我正在推动chatViewController使用navigationcontroller push方法。
我有两个困惑:
1>当我推动时,chatViewController我会这样做
chatViewController *cVc = [[chatViewController alloc]initWithFriendName:@"the name" andId:@"the id"];
可以有 10 个或 50 个或 100 个朋友,alloc init每个朋友都呼唤是否正确?
2> 当用户点击返回按钮返回好友列表chatViewController's时,当前实例将被销毁以释放内存时会发生什么情况?