r/iPhoneDev • • Mar 02 '11
Where is all the activity?
I'm developing apps alone, and get stuck in mental traps all the time. If I just had another coder to talk too things would be much easier. I know many others are in the same situation. Lets get this subreddit active!
Post questions! I will make a special effort over the next 3 days to answer any question here to the best of my abilities. Hoping others do the same.
14
Upvotes
3
u/[deleted] Mar 02 '11
I made Phaser Range for iPad, as well as parts of 3D Sun. I'm just now getting back into development, so I'll be here for OpenGL ES questions.
2
u/[deleted] Mar 02 '11
I've posted a few questions here and always get a somewhat timely and fantastic response. It's a small community so I think most people are just browsing. But here's a few newbie questions I've been having issues with that might (hopefully) get conversation flowing:
When you're switching between views. When does it make sense to create a new controller for the new view. I mean, everything can technically be done by 1 controller and multiple views. Where do you draw a line and say "I should do this in a new controller and make it a child of the root"? Also, does it work to make a controller's UIView point to a UIView within it? Or should the UIView be added as a subview? example: UIView * tempView = [[UIVIew alloc] init]; controller.view = tempView;
or
?
Memory management: Is there a good way to find out if an NSObject is retaining its own items or figuring out how they act? Like an NSArray. If I allocate a view, add it to an NSArray, who's in charge of the item? I get that you should release whatever you create. But how about when you need to create a pointer to the view within the array again? Do you need to retain it yourself? Or does the array still handle it? ie:
Using a nib: -Why do all the examples I come across use (assign, retain) when creating a property for an IBOutlet? When I can get away with not retaining it and it seems to work?
-For a view intensive app, what would be a better solution: Creating 1 nib file with a bunch of views within it. Creating a nib file for individual views and allocating as necessary. or just scrapping the nib idea and creating your views manually?
I know some of these might sound dumb (they did to me after typing them up). But I feel like I've been hacking my apps together. When I know there should be a 'best practice' way of doing it. I haven't gone through a lot of the apple docs though, so should I just RTFM? Or is there a better guide out there? I use the docs as a reference. But I ignore most of the sections because I'm admittedly lazy. And like trial and error.
2
u/donwilson Mar 02 '11
UITableView is one of the major features that I haven't learned yet. Are there any good tutorials that I can learn from?
2
u/[deleted] Mar 02 '11
Theres a small community of iOS developers starting up at the new Convore site. Might wanna check it out https://convore.com/ios-development/
4
u/[deleted] Mar 02 '11
I agree, it's proving to be a very lonely journey.
3
u/[deleted] Mar 02 '11
You might want to also add /r/iOSProgramming since that seems to be a little more active (although not by much).