monotouch

Exception when deleting row in TableView

Whenever I hit the DeleteRows code, I get an exception telling me that the number of rows before and after the update need to be the same. Here's the official text: Reason: Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (3) must be equal to the number of rows co...

iPhone table scroll to

After my table view has loaded, I need it to scroll to the 12th row. How can I do this in the ViewDidAppear ? (In MonoTouch) ...

How do I add an UIView above a TableViewController

Hi I would like to display an UIView above my tableview, for testing purposes I have used a Searchbar (to eliminate any possible problems with my code). My setup: Tab bar controller     MyCustomTableViewController         View             TableView (for customizing cell height)             Searchbar I have positioned the searchbar at...

How to switch views when rotating

I'm using a NavigationController and have a particular View that does not lay out well when switched to Landscape mode. I've made a "landscape optimized" version of that view and when the user rotates the iPhone, I'd like to switch from the Portait version to the Landscape version. The reason is I have 0 - 9 in classic calculator 3 x 3 +...

iphone monotouch detect if there is an internet connection

In Monotouch on an iPhone/iPod, how do I detect if there is an internet connection available? ...

How to do IBOutlets in MonoTouch?

I have done one iPhone app in Objective-C. When I want to link a Label to some data in that I would declare it like this: @interface CityDetailViewController : UIViewController { UILabel *cityName; } @property(nonatomic, retain) IBOutlet UILabel *cityName; And then when the CityDetailViewController object is created in code I would ...

Do I programatically add SubViews in ViewDidAppear, ViewDidLoad, ViewWillAppear, the constructor?

I'm trying to figure out from Apple's sketchy documentation which method is the best place to be initializing and adding my Views controls to the controller's view. With winforms it's fairly straightforward, as they're always initialized inside InitializeDesigner, called in the constructor. I'm trying to match the reliability of this pa...

MonoTouch CoreGraphics PDF memory issues with CGPDFDocument and CGPDFPage

Hi. I've been working with MonoTouch for 3 weeks now and everything was going great until I had to display PDFs in my app. Using Apple's Quartz 2D Programming Guide I managed to display the PDF. The problem is, that the app runs out of memory. I tried to use the Dispose() methods on the CGPDFDocument and CGPDFPage objects, but t...

MonoTouch on Device - Vibrates at launch?

I just deployed my app to my iPhone for the first time. Every time it launches it vibrates before running, and it runs fine. The build is a Debug | iPhone one of my app. Any ideas why it vibrates when it launches and how to stop that? It's definitely not something I coded up and I don't have any exceptions or issues when running in the ...

How do I programatically get a large iPad window on startup with 1.9 MonoTouch?

I have the latest Ipad compatible Monotouch library. I have upgraded my projects to use 3.2 SDK and MonoTouch 1.9 Alpha. The docs say you need to change the Window in your XIB for the large iPad Window. I don't use XIB. I build my interface from code by constructing the object programatically. What should I be doing to get the large iPa...

Redraw UITableView after updating data

Hi I have a UITableview that I load with data async so the tableview might appear without data. I have tired the ReloadData method but the tableview remains empty until I scroll the tableview, suddenly the data appears. The same thing happens when I load a tableview as a detailedview and switching between items, the previoud items data a...

Does mono compile C# and to native?

I'm new to Mono and just started recently. Is mono program are compiled from C# to native code to be able to run on several OS? and also, I saw a screencast on MonoTouch, which tells me that the monotouch (particularly) compile everything down to Native for C# to be able to run on Iphone. Im quite confuse. ...

go button on iphone textpad

hey how do i capture the event raised when the go button on a textpad with go: this.password.ReturnKeyType = UIReturnKeyType.Go; cheers w:// cross posting from: http://forums.monotouch.net/yaf_postst467_go-button-on-textpad.aspx ...

Monotoch GetPhones ABMultiValue Inconsistent

I am using the following code to get phones numbers from the address book. ABAddressBook mybook = new ABAddressBook(); ABPerson[] allPeople = mybook.GetPeople(); foreach(ABPerson thisPerson in allPeople){ if(thisPerson.GetPhones() != null) ABMultiValue<string> myMultiPhone = thisPerson.GetPhones(); } } Wra...

Monotouch - make UIView scrollable

Hey i have a view with 4 text boxes and and a logo at the top - when the user is entering information the text pad covers up some of these controls, how can i make the view scroll so that this isn't an issue. i have tried adding the view to a uiscrollview but that doesn't seem to do anything? cheers w:// ...

Problem with UITableViewDelegate

Hi I have the following tableviewdelegate: private class TableViewDelegate : UITableViewDelegate { private DaysViewController _dvc; private List<DateTime> ConferenceDates; public TableViewDelegate (DaysViewController controller, List<DateTime> dates) { _dvc = controller; Confe...

monotouch debugging on device never connects

The strange thing is that after deploying to the device and never connecting to the soft debugger, if i go to the settings 'app' onmy iphone, there are no settings for the app i'm debugging - is there something i need to do to add this? I was expecting to be able to check the ip the iphone is conncting to to get at the soft debugger. w...

UiWebView crashes iPhone

Hey The following view crashes the iPhone If I comment out the using (webView = new UIWebView(webRect)) { } section - it does not. using System; using MonoTouch.UIKit; using MonoTouch.Foundation; using System.Drawing; namespace WmcStarClient { public class EventDetailView : UIViewController { public WmcStarEvent...

Monotouch ad-hoc distro

hey I've managed to get it to do what i think is an adhoc build and inside the bin folder there's an appName.app folder is that folder the distro? if it is - how can i put it onto a web server for people to install and test for me? is this possible? w:// ...

Monotouch MapKit - annotations - adding a button to bubble

Hey Anyone know if there's anyway to get a button onto an annotation? I'd like the location to be selectable - so you can say.. select the location and get all the events at that location by clicking on the button. is this possible? w:// ...