[MonoTouch] Storyboard - Properly adding a new UIViewController
Craig Dunn
craig.dunn at conceptdevelopment.net
Tue Dec 20 19:06:02 EST 2011
Specifically, Miguel links to the iOS intro doco
http://docs.xamarin.com/ios/tutorials/Introduction_to_iOS_5
(scroll waaay down, to the Storyboard section, and sample
zip<http://docs.xamarin.com/@api/deki/files/323/=Storyboard.zip>
)
In particular, read around the line "*Viewing the class is not just a
convenience in this article – you MUST switch back to MonoDevelop to see
the stub created, as this also generates the .h file that we are going to
use in the next step!*"
To get MonoDevelop and XCode working in-sync, you will need to switch back
& forth. I would recommend doing the steps from scratch, 'as shown', to get
the hang of it; then go and apply to your app.
Trust me - it should definitely, positively, (probably) work ;-)
HTH
On Wed, Dec 21, 2011 at 10:46 AM, Jeff Stedfast <jeff at xamarin.com> wrote:
> Hi Mike,
>
> You should be able to create all of this from within Xcode w/o needing to
> manually write any code.
>
> I thought Miguel made a screencast showing how to wire up storyboards and
> have them just work on MonoTouch, but I can't find it. Basically, just do
> what you'd do in Xcode and MonoDevelop will import the stuff and it should
> Just Work(tm).
>
> The following blog provides some links to a sample and the docs which you
> may find helpful.
>
> http://tirania.org/monomac/archive/2011/Oct-13.html
>
> Hope that helps,
>
> Jeff
>
>
> On Mon, Dec 19, 2011 at 9:54 AM, QMIMike <mcasey at qmiusa.com> wrote:
>
>> I have been searching through documentation, blogs, and I have posted on
>> StackOverflow for nearly a week. I don't think this should be difficult,
>> I
>> just don't see where it is documented on how to do it.
>>
>> I can't do it within the Storyboard (Xcode). It won't create the proper
>> .cs
>> files that MonoDevelop can access.
>>
>> I can do it within MonoDevelop, but I get a .nib file.
>>
>> I finally deleted the .nib file and set the ViewController properties in
>> Xcode to the proper ViewController. I setup my button and ctrl-Dragged to
>> create a push Segue. But when I debug, I get the error;
>> -[QMIContractorsViewController btnMoveToPictureViewController:]:
>> unrecognized selector sent to instance 0xbbee660
>>
>> I also tried doing it manually in a button trying to follow some example
>> online and that did not work either.
>>
>> I would really like to use the new Storyboard features, but I need a demo,
>> or some code to reference.
>> Any help you could provide would be appreciated.
>>
>> --
>> View this message in context:
>> http://monotouch.2284126.n4.nabble.com/Storyboard-Properly-adding-a-new-UIViewController-tp4214368p4214368.html
>> Sent from the MonoTouch mailing list archive at Nabble.com.
>> _______________________________________________
>> 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/pipermail/monotouch/attachments/20111221/2a1f5148/attachment.html
More information about the MonoTouch
mailing list