Sunday, 15 April 2012

How to move between views in mac ? (change view)


magine put button on view(view1) , want go view(view2) when user click on , come first view when click on button put on view2. how can it?i use below code when want come occur error.

code:
//button on view1  view2 *v2=[[view2 alloc]initwithnibname:@"view2" bundle:nil];  [self.view addsubview:v2.view];  --------------------------------------  //button on view2  [self.view removefromsuperview];
 



Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment