Hi,
Sorry about asking about this, i know there has been a lot of talk about the subject but i could not find my issue so i thought id ask.
So I have created a custom UIView Controller class with XIB for the UI, So in the appdelegate applicationDidFinishLaunching method i get a pointer to OGRE's window and I create an instance of my custom UIView and add the view to OGRE's window. This works fine and I get the touch input from the UIView and I can even interact with the UIImageView i have in the XIB for my joystick, hoever I can not see the images or background. My UIView had a colored background with an alpha of 0.1 so i can see the color so i know the view is there but i can still see ogre, and i have an image that i use for a joystick.
I tried to set this up without the use of the XIB but the images would not show, i could change the background color and that works fine but when i add the images they do not show up.
I also tried using initWithNibName to initialize my UIViewController, however the app just crashes saying it cannot load nib named "nibName" in bundle.
If you need it I have uploaded my project to Megaupload
http://www.megaupload.com/?d=J8GL4EYN
PS: On an unrelated note, how do I set the application Icon ? I tried the usual just drag my Icon.png file into on the project view page but the icon doesn't change ... I looked in the SampleBrowser to see how it changed the icon but i couldn't find it. Thanks.
Thanks.
iOS UIView for touch input
-
masterfalcon
- OGRE Retired Team Member

- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
Re: iOS UIView for touch input
I'm not entirely clear what your issue is. Are you trying to not use a xib? If so, then you will need to load the images and build your UI manually. Are you adding the images to the project so that they get copied into the application?
PS. Check the Info.plist for setting the icon.
PS. Check the Info.plist for setting the icon.
-
xxpokerxx
- Gnoblar
- Posts: 7
- Joined: Sun Jul 24, 2011 8:18 pm
Re: iOS UIView for touch input
Sorry for not being clear.
I am using an XIB

I add it to Ogre's Window and bring it to the front. It correctly picks up user input however it does not display the actual UI. all i see is ogre running.
It is supposed to have two images for the joystick and the background is orange with alpha, so that i can see ogre behind it.
PS) about the icon, i set in the info.plist "Icon File" to "Icon.png" and that did not work, i also added the field "Icon Files" and added all my icon files, per Apples Icon guide. However none of that work i still get the default grey icon ?
I am using an XIB

I add it to Ogre's Window and bring it to the front. It correctly picks up user input however it does not display the actual UI. all i see is ogre running.
It is supposed to have two images for the joystick and the background is orange with alpha, so that i can see ogre behind it.
PS) about the icon, i set in the info.plist "Icon File" to "Icon.png" and that did not work, i also added the field "Icon Files" and added all my icon files, per Apples Icon guide. However none of that work i still get the default grey icon ?