我已經在GroupView.h如何通過變量SEGUE
定義的變量@interface GroupView()
{
NSMutableArray *chatrooms;
}
@end
@implementation GroupView
現在我想通過這個變量賽格瑞
@interface FriendsViewController()
@end
@implementation FriendsViewController
else if ([segue.identifier isEqualToString:@"showGroupView"]) {
GroupView *groupView = (GroupView *)segue.destinationViewController;
groupView.chatrooms = [NSMutableArray arrayWithArray:chatrooms];
}
我知道,聊天室必須是財產頭文件代碼這種方式,但它不是
所以有什麼辦法在segue中使用這個變量。
感謝您的幫助。
對不起,我寫了完全與我的錯誤 – user1120133 2015-01-15 18:14:13