I'm looking to figure out how to convert a working application from iPhone only to universal in MonoTouch. It appears there's a tool in xCode that does this. Is this tool relevant for monotouch? Or is there one for MT that does what the xCode one does?
Thanks!
Jim
in the info.plist change the devices to Universal(that works for me)
and like in the universal example made by Xcode and MonoDevelop you will need to implement the code that handles each iDevice
if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
{
}else{
}
after you run your app change the device in simulator to iPad and you will see the change
Related
I have a static class that uses
System.IO.Path
System.IO.Directory
System.IO.File.
Currently, the class is in my iOS project and unchanged also in my Android project.
I created a PCL that targets Android and iOS only.
However, neither one of the namespaces is available.
I presume that is because iOS and Android alone are not suitable for a PCL profile and that's why Windows Store 8 or Silverlight 5 gets added and that removes the System.IO.* namespaces.
Is this working as designed? Is file linking my only chance in this case?
Yes, for now this is the way it's supposed to work. You can use something like my PCL Storage library to access the file system from a PCL, or you can simply use file linking.
As a side note, I'd recommend choosing Windows Store and .NET 4.5 along with the Xamarin targets. That profile is going to give you more APIs than the one which targets Silverlight 5 which you get by default when you just choose Xamarin platforms in that dialog.
System.IO.Path, System.IO.Directory and System.IO.File are partially supported in PCL profile EXCLUDING silverlight 5: WP8 + NET4.5 + Xamarin + iOS.
Path.Combine works perfectly in this targeted PCL.
Need some help on xamarin Platform. I understand it can be used to develop Android-base and iOS-base App on Xamarin. I have the following questions:
For Android and iOS-based app develop on Xamarin, can the app run on Android-tablet ad iOS-tablet respectively? what I need to do for both tablets respectively?
If there are new controls for android and iOS, how Xamarin will update this for development?
1) Yes they can run on Android Tablet and iPad. Your code logic would remain the same but you would need to provide for the UI since the resolutions are different.
For iOS, Xamarin makes it simple by providing for a Universal template which allows you to provide different layouts for iPhone & iPad.
For Android, there is no template as such but the process remains the same just as you would for phones with different resolutions.
2) Assuming you are talking about the default controls, they will made available in the Xamarin framework via their regular update channels. First they are in Alpha, then in Beta and once the bugs have been ironed out, they are made available to Stable channel which can then be used in the production apps safely.
I would recommend you go through their docs which are quite good and explains this whole thing in quite detail. Xamarin Docs
There are some way to create custom keyboard code for iOS by Objective-C like this.
And some one for Android by Java like this question
So, Is it possible to create custom keyboard for Android or iOS by LUA in Corona ?
Can we integrate it to system keyboard of Android ?
Please guide me some ways, tutorial links or sample code.
Thanks!
If you are wanting to use the keyboard outside of the app then using Corona does not make sense. You would have to get the Enterprise version and then code it in iOS native an Android native then integrate it into Corona and even then I'm not sure its possible.
If you are making an app where keyboard is only to be used inside that app you can create an onscreen keyboard:
http://developer.coronalabs.com/code/onscreenkeyboard
https://www.developer.coronalabs.com/blog/coronageek/hangout-highlights-writing-a-custom-keyboard-for-spelling-test/
I created application with mvvmcross and I want to target WPF, andoid and ios.
I used task and async/await in my core PCL library.
It works with WPF and Android because I use Microsoft.Bcl.Async and AsyncBridge.Portable from Daniel Plaisted.
My problem is with ios version because Daniel not implemented AsyncBridge.Portable for ios.
I would like to know if someone maked it or if someone know where I can find source code of AsyncBridge.Portable of Daniel ?
If Daniel, you sees this post, can you explained me how can I make ios version ? :)
Thank you
You can find the source code here. From that, you may be able to just adapt the Android code to work on iOS.
However, official Xamarin PCL support is coming soon (-ish), and that may change how you need to do this (or make it so you don't need to do it at all).
Hi I have an app that supports iOS 3 however I've only ever tested it on an iPhone 4 (very bad practice I know). Lately in my updates people have been emailing me that my app is crashing on their older device, still running iOS 3. I am clearly including features only available in iOS 4 SDK but I can't find where they are in my code.
So to fix this I bought a first generation iPod touch from ebay (which I haven't received yet). Will I be able to build and run my app on this iPod touch or do I need to locate an older version of Xcode and the iPhone sdk (i.e Xcode 3.2.2) and build it using that?
If you haven't used any iOS 4+ specific APIs, you can test your apps on the iPod touch using Xcode 4.