How to add detail views to table view? [closed] - ios

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.

Related

How to read an IOS App project [closed]

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.

How to construct multiple MVC in ios? [closed]

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.
It's well known that MVC is the only pattern in iOS. Currently, I'm developing a project with multiple MVCs, I'm confused about organizing these MVCs.
Basically, I have a survey MVC and a Question MVC. The sequence of display for the survey is:
An interface for user to key in title and description of survey
User clicks next to show the question interface
User clicks the next button to show another question interface and so on.
I'm thinking to have one model for the survey and one model for question. But How can I link the survey model to Question as I need an array of question in the survey model, which means the survey model depends on question model?
Please help me on this, thanks so much!
Your descreption seems a bit loosy. what you're describing is a Single MVC system where you have multiple views to :
Display survey.
Display questions.
and multiple modules to represent :
Survey object.
Question object.
you can easily use a UINavigationController with two or more UIViewControllers to build such app.
I suggest you to take a look at apple's Your second iOS App tutorial which is similar to what you're describing.
Hope that helps

NSNotificationCenter - Observer Pattern: Ok, but in mobile apps? [closed]

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.

Are there any high level explanations of how Zend Framework 2 all fits together? [closed]

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.

facebook link recognizer for rails? [closed]

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 am developing an app that allows users to post to walls/groups very much like facebook or a classic forum. I really like the way you can post a link on facebook and the link will be recognized as a video, pic, or other media and will automatically display. Its a great feature b/c it keeps users on facebook instead of leaving the site. On that note, I was looking to implement something similar for my the app I am developing. Are there any rails plugins/gems that do this kind of thing?
Yes, I know how to google and have done so. I realize that I could write regular expressions to scan the link and then take an according action. However, I am looking for an existing implementation to save a boat load of time.
Any and all input would be appreciated.
Existing implementations would probably be employing some form of regular expression, although another approach is using custom "Markdown" syntax or BB code to make the regular expression easier.

Resources