Hey all,
I couldn't find a direct answer to my questions online, so I figured I'd come to yall. I apologize in advise if this question has already been asked, or if it is in the wrong forum. I am not new to programming (knowledge base includes good ol' fashion C & Assembly); however, I am new to Objective-C and more importantly Xcode.
Okay, so I have just gotten into developing a couple of apps, and I have come across a couple of big questions that will definitely save me a lot of time if I find the best way to do it now.
I am creating an app that has menu(s). Specifically when you click a button on the app a menu slides out and covers about 60% of the screen. On the menu is a list of options (buttons). So, right now I have the menu background (View) and buttons inside of the menu. Instead of programmatically creating the buttons and background view every time the menu button is clicked, the size of the views is expanded, and when it is clicked again it's width is set to 0 (so it appears that there is no menu open). When I run a simulation, everything works perfect, it seems fast, and I have no bugs.
So my questions:
(1) Is this a valid app design? Will creating an app that works like this cause it to run slower/faster. Is it better to programmatically create the menus & options every time the button is clicked?
(2) This is probably the biggest concern. Designing my app like this does not allow me to use "Auto Layout" or "Size Classes" (At least from what I have seen). So, if this is a valid way to design and create an app, will I be able to input something into my code that depending on what device or IOS the app is downloaded on- my app will reconfigure itself to fit the size of the device? I know I could very easily implement this code, but I would need my application to know what device the app is downloaded on.
(3) This question is a little bit off-topic than my other two. But is it possible to create an object on the Main.storyboard (ie a button with the height, width, X, & Y coordinates already set to how I want them, and then do something in Xcode to where I can see the code of the button if it was created programmatically (with the values already set to how I want them)?
I know these questions are very n00bish, but any help is great appreciated, and if you have any experience with similar app designing questions please feel free to comment on how you prefer to implement a "menu" and so forth.
Thanks again,
Snoz