monotouch

Testing a Monotouch app with NUnit in MonoDevelop 2.4

I'm new to both Monotouch and Monodevelop. Trying to get started with NUnit and I'm having a lot of trouble -- none of the sketchy references I can find on line seem to match what I'm seeing in the UI (MonoDevelop 2.4 on Mac OS 10.6). I've tried: Adding an "NUnit assembly test collection" project to my solution. Adding an "Empty MonoTo...

UIButtons programmatically added to UITableViewCell never appear

Trying to create a simple table full of buttons, where the buttons are generated at run-time; the table appears, and has the right number of rows etc., but the rows appear to be empty. public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { // The NavItem class is a "Josh Bloch enum" with...

Build problem with monodevelop/mnotouch

I haven't tried to use monotouch in a while. I've recently upgraded to snow leopard and to the most recent monodevelop and monotouch (from within monodevelop) and apple sdk (directly from apple). Somewhere along the line I installed monomac. Now when I try to build an iphone app I get this error: Build Failed.Method not found. MonoDe...

Best practices for iOS / montouch programmatic UI layout

New to iOS, coming from the Java / Swing world, where I'm used to creating UIs programmatically, letting components size themselves and using various clever layout managers to arrange things. It already seems clear that the iOS way is to make heavy use of Interface Builder, with a lot of fixed sizing and positioning. I'm not sure IB is ...

Creating iOS UI components from NUnit test code

I'm trying to write a unit test for some code that programmatically creates UIButtons, but when I call this code from the test, I get a NullReferenceException. Stepping through in the debugger, it looks like UIButton.FromType() returns null. Here's the method I'm testing: public UIButton makeButton (String title, Action<IWelcomeCon...

Configuring the NUnit command line to run MonoTouch tests

I've got a unit test in my MonoTouch project that I can't run from inside MonoDevelop -- it fails with "Unix transport error." Poking around on the web it looks like that's associated with the NUnit test runner blowing up, so I thought I'd try using the command-line test runner. I used MonoDevelop's "Create Package" to build and package...

C# / MonoTouch EventHandler becomes null after component displayed; delegate going missing?

I've got a UIPickerViewModel that's supposed to fire an event when its selected value changes, but by the time Selected is called, the EventHandler is null. Code (somewhat simplified): public class MyPickerViewModel: UIPickerViewModel { public event EventHandler SelectionChanged; public void PrintWhetherSelectionChangedIsNull()...

UIViewController not garbage collected when started modal

I’m having a memory issue in my iPhone app. I'm using Monotouch. I have hunted down the problem, by using a static instance counters. The problem has something to do with modal view controllers. When i navigate from a root-viewcontroller to a first-level-viewcontroller and back, i find that the first-level-viewcontroller is garbage-colle...

Stop webview from "Bouncing" (Monotouch / C#)

I'm using Monotouch to develop an iPhone application. I'm aware there are answers out there for this question already for Objective-C. For example: Stop UIWebView from bouncing vertically This answer is ideal. I figured I could just take it, and turn it into C# and it'll be fine. The Objective-C code is: for (id subview in webView...

Monotouch Dialog Cannot get out of ILIST because Backbutton is Missing,..

class Fahrzeug { [Entry ("Typ")] public string typ; [Entry ("Name")] public string name; [RadioSelection("ListOfString")] public int selected=0; public IList<string> ListOfString; } public override void ViewWillAppear (bool animated) { base.ViewWillAppear ...

Is IKVM on Monotouch a supported/tested deployment of the VM?

It seems that running the IKVM on monotouch is one possible method for deploying Java applications on the iPhone. Is this combination one that has been tested and is being successfully used in the field? ...

Can I use nHibernate with monotuch?

Did anyone tried out to use nHibernate with monotouch framework? Are there any issues that I should take in concern? Or this scenario is not possible? ...

Detecting when you're in/out of the main thread in Monotouch

Is there a way in iOS / Monotouch to detect whether code is being called in the main thread? I'm looking for something like the equivalent of Java's EventQueue.isEventDispatchThread() -- I've found in Swing programming it's handy to assert that from time to time (or sometimes to assert that it's not) -- making sure that models are consi...

Do OS X applications written in Mono have the same features as MonoTouch?

What I mean by this is: MonoTouch integrates and binds to Interface Builder and the full Cocoa Framework. MonoTouch applications compile with the runtime, so there is no JIT, and no runtime needs to be present on the host OS. Can OS X applications written in Mono take advantage of these MonoTouch features? ...

Monotouch - Missing Method on DLL

Hi guys, I'm trying to create a project in .Net for IPhone using Monotouch. My problem is: I have a DLL generated by Visual Studio 2010. This DLL just have an Interface and two other classes. I can use with no problems in my project in Visual Studio, but when I try to use the same one in Monotouch, i've got this error: Building: Hello...

iPad - topmost modal view controller won't dismiss when there are multiple

I'm working on a dual-iPad/iPhone application. I'm having a problem that is occurring on the iPad only: Root view controller is a UISplitViewController on iPad, UITabBarController on iPhone A modal UIViewController can appear over the root controller A modal UIViewController can appear over the previous modal controller On iPad, modal...

UIWebView isn't accepting multiple touches

To display attachments on a messaging system I'm developing for my app, I've got a UIWebView which is presented in a ModalViewController, displaying the file contained in the attachment. If it's any help, the code I'm using to display the file is as follows: NSUrl docUrl = NSUrl.FromFilename(filePath); NSUrlRequest request = new NSUrlR...

High profile MonoTouch apps?

I would like some examples of high profile apps created using MonoTouch. The apps you call home about. The apps that made it to the top 25 lists in their category. Where can I find examples of such applications? This is a valid question, and should be re-opened. I need concrete examples of good applications developed using MonoTouch, i...

How to localize iPhone(monotuch) and Windows Phone 7 application altogether?

I want to build application both for Widows Phone 7 and iPhone using .net stack. As being rationale I want to avoid to double code this logic. Is it possible to use resx files in both platform for this, or are there any good viable solution so I can reuse code base on both platforms? Any good advice or best practice if anyone stoped on ...

What is the Monotouch equivalent of dealloc?

I am looking at an example online that contains this code in objective-c -(void)dealloc { [activeController viewWillDisappear:NO]; [activeController.view removeFromSuperview]; [activeController viewDidDisappear:NO]; [activeController release]; [super dealloc]; } I assume the MT equivalent would be Dispose, am...