Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

FreddieMac2

macrumors newbie
Original poster
May 9, 2010
12
0
I have two views myViewController which calls a subview myLocationController. The myLocationController is just a picker view for selecting a location. Once the user selects a location I want to launch a subview of myViewController but I cannot seem to get the proper coding. I define a variable in myLocationController as the type myViewController. Before I launch the subview of myLocationController I have been trying to assign the view to that variable like

myLocationController.myViewControllerVar = self;

or

myLocationController.myViewControllerVar.view = self.view;

No joy on getting this working. What am I missing or doing wrong? This same type of procedure works for a UIWebView...

FM

_________

This does work when you synthesis the variable to be used to track. That was the problem.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.