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...
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...
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...
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 ...
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...
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...
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()...
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...
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...
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 ...
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?
...
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?
...
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...
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?
...
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...
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...
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...
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...
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 ...
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...