How to construct multiple MVC in ios? [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.
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

Related

How to add detail views to table view? [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 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.

Ruby on Rails Events Application [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 relatively new to Ruby on Rails. I have built few sample apps but now I want to build a real world app like an events website which gives information on forthcoming events, event galleries, etc. Can some one give more ideas on this or something already built on github to learn using it.
Thanks in advance.
By the types of question you are asking, it seems to me that you are not very experience in Rails. Therefore, I recommend you to complete Michael Hartl's tutorial: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book. Although it won't teach how to make galleries and such, it will teach you the fundamentals that you need for your app. For instance, in your case you will understand how to create an Event model with information in a database that you can then show. After that, you can go ahead and check out things like spud_photos( https://github.com/gregawoods/spud_photos) which is a gem that allows you to create image galleries.
Good luck

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.

How do I create a poll on the facebook wall? [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 want to create a poll on the facebook wall. Is it possible to do?
For some reason the creation of "questions" (aka polls) is not available yet in the API. If you want you should log a bug at developers.facebook.com/bugs and mark it as a wishlist item.
As far as I know it isn't possible.
You can only read questions with => "HTTP GET request to the /USER_ID/questions endpoint with the user_questions or friends_questions permissions"
...but I haven't tested it yet.
You can try one of many pre made poll apps, like this, just search for polls at the top in the apps, then install them on your page http://www.facebook.com/mypoll.page .
Another way would be to make an app that does the job, I have created apps before to add tabs to Facebook, you can put whatever you want on them then like a poll. Im not 100% how to post it to your wall without digging some more, but the example I posted above shows the poll posted on the wall.

How MVC works in magento [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.
Thanks for the previous replies.
I am new to Magento and don't know how MVC operates in this framework. I want to display "Hello world" using MVC format--i.e., the controller imports the string from the model and transmits it to the view for display. Can anyone give me an idea of how MVC works in Magento?
This Magento MVC flowchart may assist
you can take the magento basics course for free today http://www.magentocommerce.com/services/on-demand
As we know, the implementation of a “Tier Model” is a large part of an MVC framework. It represents the details of your application and handles data in applications. Magento Models play an even greater role, because they usually contain the “Business Logic”.
The Magento Object Relational Mapping (ORM) has very important role in the process of working with database. Here We will go deeply to understand ORM. You can follow:
Magneto Object Relational Mapping ORM
MVC Developers - Magneto Models and ORM Basics
The only thing different in Magento's MVC model that is different from other MVCs is the way it use Block.
In normal MVC, variables are passed to the View through Controller. However, in Magento, Views get data from Block, and Block gets its data from Model.

Resources