[MonoTouch] Getting Started with IB and MonoDevelop

Ethan Nagel enagel at nageltech.com
Mon Aug 24 03:42:22 EDT 2009


Hi, Tom.  Perhaps I could turn the tables on you, ould you mind posting a
basic working example with a second NIB file being loaded?  That would
really help me and I suspect others as well.

  - Ethan

On Mon, Aug 24, 2009 at 12:01 AM, Tom Renneke <tom1234 at gmail.com> wrote:

> I just tried to add a "View Interface Definition with Controller" and
> added a "public override ViewDidLoad()" at the end of the class. I made a
> button, label and add the "Title" to my NavigationController. It loads just
> fine and button works with setting text in label, so you must be doing
> something wrong.
>
> Are you sure you've spelled the "public override ViewDidLoad()" correctly?
> And that you load the View correctly? In order to help more I need your
> code.
>
> Tom
>
>
> 2009/8/24 Peter Sakhno <sakhno at gmail.com>
>
> I have the same problem with latest MD and MTb5.Newly added "View
>> Interface Definition with Controller" did not call overriden in view
>> controller AwakeFromNib and ViewDidLoad events. I can create it by NIB name,
>> assign it to the main window view and see it in the simulator. Also action
>> attached to a button is never called.
>> While everything in NIB file seems to be well configured and attached to
>> each other.
>> Did I missed something or it is a bug?
>>
>> 2009/8/22 Ethan Nagel <enagel at nageltech.com>
>>
>>> As a long time .NET developer who has been doing iPhone development
>>> lately, I can tell you I'm very excited about MonoTouch.  Excited and very
>>> impressed with the design of the integration.
>>>
>>> That being said, I'm having problems getting started with IB and
>>> MonoDevelop.  I've gone through the "Hello Mono" example and that seems to
>>> work fine.  I've been attempting to create a simple view.XIB/ViewController
>>> and load it into the window view, as you would in a "normal" iPhone
>>> application.  I can get the view to load, however it doesn't seem to link up
>>> my properties to the outlets or be calling my events such as ViewDidLoad or
>>> ViewWillAppear.   In my example, I've set my c# class to be the File's
>>> Owner... is this the correct use?
>>>
>>> I've done this quite a bit in Objective-C, but I'm struggling with the
>>> correct approach in MonoTouch.  Is there a simple example out there that
>>> shows this approach?
>>>
>>>  - Ethan
>>>
>>> _______________________________________________
>>> MonoTouch mailing list
>>> MonoTouch at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/monotouch
>>>
>>>
>>
>> _______________________________________________
>> MonoTouch mailing list
>> MonoTouch at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>>
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monotouch/attachments/20090824/7b040dbb/attachment-0001.html 


More information about the MonoTouch mailing list