mortenstarck
mortenstarck

Reputation: 2803

App Delegate issue, MonoTouch

I have just started using MonoTouch and iPhone SDK. But I have en problem, where I want to create an tableView, but all examples i have found are binding the App Delegate Object to the view, but then I create me example, the App Delegate is an class inside MonoDevelop. And the problem is that I can't access the TableView controller in the appDelegate.cs file.

How do I bridge that problem? I wonder if the problem is that the example I'm using is made in xCode 3 and im using the lates xCode 4 and it is doing things another way.

Are there any guides for monotouch there shows me have to do it in XCode4. Because thats the only problem I have right now.

Upvotes: 0

Views: 400

Answers (2)

poupou
poupou

Reputation: 43553

Start with the MonoTouch tutorials. They'll explain you on how to use XCode4 and MonoDevelop together. After that it will be much easier to learn / re-use existing samples (e.g. that depends on Xcode 3).

If you're looking at tables you might want to check MonoTouch.Dialog (but after the turorials ;-). The API is much easier to learn and it comes with a great sample application.

Upvotes: 1

Felix K.
Felix K.

Reputation: 6281

Seperate your data from your views by using a programming model like MVC, this should solve the problem.

Accessing the TableView from the AppDelegate is not a good idea.

Upvotes: 0

Related Questions