Monotouch: can I use "Upgrade Current Target for iPad command" - xamarin.ios

Is it possible to use the XCode "Upgrade Current Target for iPad" command to assist in converting a Monotouch created app for the iPhone to make a "universal app"?

Only way I know of is to use the option 'Create iPad Version' in Interface Builder (IB) for each of your XIBs. From there you will have to save the XIB and hook up iPad versions of your controllers.
It actually might be easier to start a new "Universal" project and import your old code in.

Related

Generating netbeans project with Lwuit

I am trying to generate a netbeans project with Lwuit editor. But gets this error message that some library are missing and that WTK 2.5.2 CLDCC Cannot be found. any idea on how to fix this
http://www.oracle.com/technetwork/java/javame/javamobile/download/lwuit/index.html
Is the location of the library that you must download.
Additionally you may need the wireless toolkit though I am not sure why.
http://www.oracle.com/technetwork/java/download-135801.html
If you are writing for mobile devices I strongly recommend that you check out Codename One which is the open source product developed by the original designers at Sun of lwuit. http://www.codenameone.com/

How to create custom keyboard using LUA and Corona?

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/

Can I make MonoDevelop look good on a Retina display?

I bought a new Retina MacBook Pro to develop for iOS with MonoTouch.
It is extremely frustrating that, probably because it is built on Gtk#, MonoDevelop is very blurry.
I can cope with blurry UI but I can't read or write code because it hurts my eyes.
What is the current status of Retina support in Gtk# and MonoDevelop?
Is there any (experimental) compile flag at least to enable proper code rendering?
If I want to contribute, which component is in charge of this? Is it Gtk# or Gtk itself?
Update
This has been fixed as of MonoDevelop 3.0.4:
Other improvements and bug fixes
Fixed rendering on MacBook with retina display
So just go and download it.
Workaround for Older Versions (and other apps, too)
There is a temporary work around I used for WebStorm that worked well. It should work for MonoDevelop too.
You can use that in the mean time until the Xamarin folks get an update to MonoDevelop out.
Here it goes:
Locate MonoDevelop in Applications and click Show Package Contents
Open Contents/Info.plist in any editor and add this after opening <dict>:
<key>NSHighResolutionCapable</key>
<true/>
Copy and paste MonoDevelop app bundle, delete the old one and rename the new one back to MonoDevelop. This will flush system caches.
You will notice that MonoDevelop.app info now has Low Resolution option unchecked and the code renders smoothly.

Converting existing iPhone project to universal in MonoTouch?

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

How do I change MonoDevelop Target Framework to iPhone for imported .Net library project

I've imported an existing C# library project into a MonoDevelop Solution targeted for iPhone. My original project has a target Framework selection of Mono for iPhone but my newly added project only has Mono/.Net choices. How do I get the iphone targets to show up so I can properly reference it from my existing iPhone targeted projects?
Easiest way I've found is to make a new MonoTouch Library project and either "link" or "copy" the files from the existing project.
This is usually necessary anyway, as usually you will have to add #if MONOTOUCH preprocessor statements in a couple places.

Resources