[MonoTouch] Storyboard - Properly adding a new UIViewController

2011-12-20 Thread QMIMike
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@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch


Re: [MonoTouch] Storyboard - Properly adding a new UIViewController

2011-12-20 Thread Craig Dunn
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
ziphttp://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 j...@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 mca...@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@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch



 ___
 MonoTouch mailing list
 MonoTouch@lists.ximian.com
 http://lists.ximian.com/mailman/listinfo/monotouch


___
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch