views:

811

answers:

3

hi experts, how to get xcode variables result from one view controller to another view controller,

actually in one view controller i called web services to get userID which is declare as NSString, and in another view controller i want to display the userID which is retrieve from previous view controller, so how this can be done

thanks

+8  A: 

You're a bit confused, starting with your terminology:

  • The language is Objective-C.
  • The framework is Cocoa (Mac) or Cocoa Touch (iPhone).
  • The IDE is Xcode.

What you really want to do is have a common data model in your application, independent of the views in your application. See any of the copious documentation on how Cocoa and Cocoa Touch implement the Model-View-Controller pattern to understand how to do this.

Chris Hanson
A: 

I have the same question....and after reading the answer I still feel confused. Can anyone explain it in more detail? I am so desperate now

A: 

Chris, expound please. Copious availability of information or not your not clear.

Metalboyblue