And these properties to ofApp.h (props referenced from MyGuiView):
float lengthRatio;
int numPoints;
bool bFill;
4 - Update MyGuiView.xib to open in latest Xcode and build for latest iOS
5 - Make sure .xib is added to Target / Build Phases / Copy Bundle Resources
6 - Check all the values in the inspectors (right side bar) when .xib is selected. File’s owner and view are linked. I noticed File’s owner / Identity Inspector / Class was “MyMusicView”. I changed this to MyGuiView. This didn’t help other than linkage warnings were removed.
The app builds fine and deploys to the device but the GUI is not displayed. Any thoughts on this?
You could try to resize your view directly in your ofApp setup to check if it’s just a positioning problem, or something else:
[myGuiViewController setFrame:CGRectMake(0, 0, ofGetWidth(), ofGetHeight())];
To make it more visible you can also programmatically change your background color for debug:
[myGuiViewController.view setBackgroundColor:[UIColor colorWithRed:1.0 green:0 blue:0 alpha:1.0]];
I wonder how the iPhoneGuiExample app manages to successfully add the MyGuiView to ofxiOSGetGLParentView() in ofApp:setup()?
It used to work exactly like that but stopped recently. My best guess is that there are some legacy settings somewhere that make it work. Does anyone know better?