1

I would like to port a WP7 app I wrote to the iPhone. Is there some useful document for me to start? I have no knowledge in Objective-C yet.

2

3 Answers 3

3

MonoTouch is a development stack for using C# and .NET to develop iOS apps. This should make iOS app development easier for existing .NET developers.

Here're the good parts of MonoTouch:

  • Supports C# language
  • Supports LINQ
  • Silverlight core is supported (eg. .NET core, WebServices, JSON, XML). Read MonoTouch FAQ for more detail.
  • Supports Sqlite (only) via Mono.Data.Sqlite.dll
  • iOS classes exposed as .NET managed classes

There are a few gotchas:

  • You can't dynamically link to an assembly. Code needs to be recompiled natively on the iOS (sorry no JIT compilation)
  • Because MonoTouch still depends on the iOS SDK, you must be familiar with iOS programming model (eg. view hierarchy and application lifecycle model).
  • You can't use VisualStudio directly. You need MonoDevelop and Xcode to develop MonoTouch apps. That said, someone apparently hacked Visual Studio and was able to write a large portion (not all) of the code in Visual Studio. Check it out here.

Because of this setup, I would recommend separating your code into business and UI logic. The business logic can be reused in iOS and WP7 projects, but develop the UI logic individually for iOS and WP7.

0
1

You might want to look at Mono touch. It allows you to write native iPhone apps in C# so at least that way you only have one new thing to learn and that's iPhone framework Cococa Touch.

I personally found the Pragmatic Programmers: iPhone SDK Development book a good start.

0

Also if you are familiar with html(5) and javascript you can think about using frameworks like Phonegap which supports up to 7 mobile plattforms using the same application code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.