多个view间共享数据

(Applicationname)AppDelegate*gate=[[UIApplication sharedApplication] delegate];
   //   gate.navigationController.view.data
  //     gate.viewController.view.data

@class view;
@class viewController:UIViewController
{

view*m_view;
}
@property (nonatomic ,retain)view*m_view;
@end


@class  view:UIViewController
{
int data;
}
@property int data;
@end

你可能感兴趣的:(Class)