Monday, 19 October 2009

Monospace app .1 release

MonospaceThe first version of the Monospace schedule app had a few issues (extra UITableView lines, for example); here is an updated version (with at least one less bug):

Monospace21.zip (183Kb)

A couple of additional features were also added...

UITabBarController More & Edit
Two of the cool things about UITabBarController are (a) when you add more than five items, it automatically creates the More... option; and (b) when the More list is visible you can also edit the order/position of items in the tab bar. Bonus!

There is a new 'Sponsors' ViewController to show this functionality:

I've used a UIWebView with images saved locally as a quick hack to get the sponsors page working. Setting the baseUrl makes is easy to reference images saved in the application bundle from local Html.
string basedir = Environment.GetFolderPath 
(System.Environment.SpecialFolder.Personal);
basedir = basedir.Replace("Documents", "Monospace2.app");
webView.LoadHtmlString(FormatText(),
new NSUrl(basedir+"/Sponsors/", true));
CoreLocation with MapKit
The MapViewController now also uses CoreLocation.CLLocationManager and custom delegate to track your location and calculate the distance to the conference center:

It also includes a new UISegmentedControl to change the map style.

2 comments:

  1. Hi,

    I am getting following error and the Application Crashes on the iPhone Simulator.

    Monospace2(361,0xa0549720) malloc: *** error for object 0x4898060: double free
    *** set a breakpoint in malloc_error_break to debug
    Stacktrace:

    at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00004>
    at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
    at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x00089>
    at Monospace2.Application.Main (string[]) <0x0001e>
    at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

    What am I doing wrong ?

    Cheers

    ReplyDelete
  2. Sorry Manoj - I haven't seen that before. The only thing I can suggest is trying the latest version of the code. Also check you have the latest versions of (i) Apple dev stuff (Xcode) (ii) MonoDevelop (iii) MonoTouch.
    Hope you get it working.

    ReplyDelete