It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have been learning Objective-C and IOS 5 development for about two month, and find some open source IOS App projects, now I try to read those source code, but when I begin, I don't know how to begin reading, can anybody give me some suggestions to make me to know how to read effectively. Thanks all.
Start with the AppDelegate and the RootViewController (Check the rootviewController by launching the application and noticing what loads up first). If you can't find a RootViewController of the project, add a simple line like:
NSLog(#"I am in View 1");
in each of the class and see which gets called first. Then, after you've found your first controller, follow the code from there to see what's invoked and in response to what.
I recommend starting with a simple open source project rather than reading something complex like a Cocos 2D game. For example, start with example codes that Apple provides in developer documentation - using multiple view controllers, table view code, etc.
EDIT: Simple Solution - Follow the Storyboard if its used in the open source project you're looking at. Else, refer above.
I would start with looking at the layout of the Storyboard (in iOS 5, this is becoming the normal and preferred way of designing the UI for most people). Look at the initial scene and then use the identity inspector to see what the subclassed ViewController is. Look through that VC's code and see what is going on. Run the app to see how the executed flow compares to the Storyboard design.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I hope someone can help me!
So I am building a app and I need to have 10 pages.
I found a way to order them in a way that suits the purpose.
I am using the template of this tutorial:
http://www.scienceathand.com/idevblogaday/adventures-in-uisplitviewcontroller-2/
The sample code is on github:
https://github.com/toddwbates/MultipleMasterDetailViews
So I have a split view, with the master view split in 2 by a tab bar. The master view contains a table. The only thing I need to know is how I can add 4 detail view pages to the Master 1 table, and 6 detail view pages to the master2 table, working and navigating well. So I can edit the pages individual and easy navigate to them.
The orientation of the app is: Landscape.
If you need more information, look at the tutorial, sample code or ask me the things you need to know to help me.
I would recommend that you read up on the basics of UIViewController design and implementation. Here are a few links to get you started:
UIViewController Programming Guide:
http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html
Then when you've got a handle on that, check out the UISplitViewController documentation:
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UISplitViewController_class/Reference/Reference.html#//apple_ref/occ/cl/UISplitViewController
You could also refine your question by providing some examples of what you have tried that have not worked. This way the community would have a better idea of what you're trying to do.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Strange grammar, but I want to ask if there are cases where if I don't KVO (Key Value Observation), the app just can't do certain things/features?
Thanks
Key Value Observing offers functionality and behaviors that are unique and certainly useful to a developer, in same cases offering a glimpse at values that are otherwise opaque.
For example, if you want to know the precise duration of an animation in Cocoa that is otherwise a black-box (for example, the keyboard disclosure animation duration), KVO is the only way I know of that you could establish that.
Beyond that, it's a useful pattern for programming applications that involve data (go figure). As such, it is yet another tool in a developer's toolkit.
Can you get by without it? Sure. There are many tools you can get by without, and this one takes a little bit of effort to wrap your head around initially. But should you make a point of avoiding it? No, I don't think so - why would you?
You nearly never need KVO.
Only when you need some special things, or want to circumvent Apple sw design.
And for that few cases, you will find demo code, so dont worry about KVO much.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Why using NSNotificationCenter(ios) in a mobile apps. I mean I dont have many UI controls to update on a View. Also if I need to pass down to the caller of a View I would just use a delegate.
It might be justifiable in a logical sense if I have many Views in a Navigation control, and I would like to have each view down the navigation to update something - it is in situations like this NSNotificationCenter gets into play?
Thanks
Regards
In the situations you mention, you probably shouldn't use notifications -- it really doesn't have anything to do with mobile apps, the same criteria would apply to desktop apps as well. Notifications are best used if you need multiple objects to listen for an event, or in some cases, where two view controllers are far apart in the overall scheme of controllers, it's difficult to have one view controller set itself as the delegate of the other.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am currently playing around with Zend Framework 2.
Do any of you know of any high level explanations of how Zend Framework 2 all fits together?
I am not talking about a tutorial which shows you how to quickly get a website up and running using ZF2; I mean an easy to read "behind the scenes" guide which explains which code does what. This could be a simple explanation step by step of how ZF2 starts a project, loads each module, does the correct routing and then sends the correct output to the user.
I know it is possible to step through all the code using the debugger, but for beginners this is very painful without first understanding ZF2's architecture.
Does this exist?
Possibly even some sort of architecture diagram or UML?
Thank you.
I watched this:
http://www.youtube.com/watch?v=NsOrT1R6IQ0
It basically goes over the DI, ServiceManager and EventManager and explains the theory behind the use of modules. It is quite long (45 mins or so) but it did give me a good general overview.
Hope that helps a bit :)
Most of what you are looking for (not all by any means) can be found in the Zend/MVC component reference.
However it is not very concise and user friendly.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a requirement where, I need to give the user only one editable java class where he can make changes in the program such as changing username, changing phone number. The moment he saves the data, the built program should be able to reproduce the changes.
I am doing this project for BlackBerry.
I want to know, is there any way in which I can link a class with external project? I am developing the project using Eclipse. I don't know how the user will make changes and save. I know it's a little weird but generally speaking, I want to link two different applications using some middle interface. Any help is greatly appreciated
I believe this is a simple case of "You think you know what you want but you really don't" :)
Please explain what it is you want to achieve between your two apps and how they interact and we will provide you with a much better solution than asking a user to modify java files.
UPDATE AFTER OP COMMENT :
You need to look at XML or JSON. These are ways to format data so that it is easy to write/produce/transfert/parse.
Parsing XML on Blackberry
Parse XML file on BlackBerry
When you build a java project you get a jar file. If you include that jar file into the classpath, all of its contents will be available to your code (with necessary import statements).