I have made so far an app, with on the mainviewcontroller and tableview on it. I set this viewcontroller as my main one in the appedelegate:
window = new UIWindow (UIScreen.MainScreen.Bounds); navcontroller = new UINavigationController (); ..... navcontroller.PushViewController (launcher.fillGui (), false); window.RootViewController = navcontroller; window.MakeKeyAndVisible (); (declaration of windows an navcontroller is made above, launcher.fillGUi () will make my gui and fill the tableview with data) -> this works well But now, my mainview contains a tableview. I wanted to show more than 1 column in this tableview, so I made an custom cellcontroller which contains multiple labels. Each label will show a value out of my database on the screen. To make sure this data is showed in the tableview I made a custom datasource controller. -> this works also all good. http://monotouch.2284126.n4.nabble.com/file/n4641180/Hymedis_iPhone.png I wanted to add an event on some of these labels where I can check if the user clicks on a label This way the user will be able to change the values like he wants it. -> This works, i can check if the user clicks on these labels and put for example some text to the console. But now my real question : how can I change the active screen on the device, when a person has clicked on a label? This new viewcontroller will contain all the different stringvalues that he can choose. When he chooses a new value, he will return to the mainview. Because my events of these clicks are not on my mainview and every example shows a buttonclick thats on the mainview, so it's easy here to push the new viewcontroller to the window, but in my example it isn't that way? -- View this message in context: http://monotouch.2284126.n4.nabble.com/Change-view-on-window-in-this-example-tp4641180.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
