how to combine two project on iPhone? - iphone

I want to ask about the objective C on iPhone. I am writing a application, it contains 2 pages. The first page requires the user enter some information. The second page displays the tab page (3 tab).
And I create the first page and the second page in different project. I use the 'Window-based Application' to create the first one and use the 'Tab Bar Application' to create the second one.
However, I don't know how to combine it. Or should I build the second page in the first page project? If so, what should I do and link the tab bar? As I don't know how to create a tab bar content in the first project.
Thank you very much.

The link below might help get you started, but you'll have some difficulty with the Tab Bar Controller part. I usually create all those pieces programmatically...
http://pushplay.net/blog_detail.php?id=27

Does the "info page" collect some information and then not appear again under normal usage (e.g. a login screen)? If so, I would recommend making the "tab page" your main view, and present the "info page" modally (with presentModalViewController:animated:). It shouldn't be too hard to copy the view controller files and xib, if necessary, into the project with the "tab page".

Related

Drupal 8 - browser tab title translations for views

I am creating a multilingual site in Drupal 8. The browser tab title for nodes translate, but in a view the titles are all in english.
Currently, the goal is to create one view page and use a URL alias to direct to the other translation views. I have the filter set to content revisions for languages using the "Interface text language selected for page". On these view pages, everything but the title translates.
Is there a way to force the browser tab titles to translate without having to create additional view pages for each language?
Thank you in advance for any advice
If by "browser tab title" you mean Views' title, enable "Configuration Translation" core module, and then click on "Translate" link next to your View ("Operations" column, /admin/structure/views).
If you mean titles of nodes' which you output in a View, then check out settings of a default prebuild "FrontPage" View, because it works just great with content translations, maybe you've just missed some important settings which you can spot there.

A Navigation Stack for Search result for Ionic Framework

Does anyone have any idea for the following scenario?
I do have a tab sample and some tab views will integrate with the search bar view/function at the navigation bar.
Views from search results are actually live in some tabs.
How can I share the view of the search results on a certain tab where I have searched for items.
(note that view of a search result is actually live in one of the available tabs)
Here is an example:
I do have three tabs on my platform as follows:
each of the tabs will have the search bar.
Home | Map | More
I do have a profile view at the "More" tab.
If the user searches for a profile at the "Home" tab, how can I show the existing profile view at the home tab instead?
Besides that, I would like to make sure the navigation stack for any search results are always staying at the place where the user trigger search function. In this case, any search result navigation stack will
be tracked and displayed at the "Home" tab instead.
You help will be much more appreciated.

Is it ok to use the official iPhone compose icon on the tab bar of my app?

I have a tab bar for my app. One of the tab is an "action" tab for which I would like to use the official iPhone compose icon here as the tab item icon, is it allowed?
It is allowed provided you use it they way it was intended to be used. So if it is used to initiate a "compose" feature it would be allowed.
Apple will not hesitate to reject an app if any of their icons are used in unintended or nonstandard ways - and will site their HIG. So if you aren't sure, I would suggest just creating something very similar yourself.
The compose item is a bar button system item, not a tab bar item. I think you will run into HIG issues with it - it is typically used to summon a modal controller for you to create an item (usually a message).
That doesn't really fit as a tab bar item, which suggests a view of information that you can switch into or out of at any time.
In addition, the graphic may not be in the correct proportion or have the right properties to use in a tab bar.

Load tableview on first start up only and populate tab bar accordingly

Ok I'm making an iPhone app that (only on the first time the user opens the app) loads a tableview with a list of, for example, sports teams. The user checks the sports teams he wants and taps the done button. Then the tab bar loads with the teams the user selected in the tab bar. Any way how to do this as far as a tutorial/ code? Thanks!
I think this link may help you: How to set iPhone tab bar icon in code?. For more help on how to use TabBarControllers, there are tons of sample code AND sample projects found here: UITabBarController Class Reference. Hope that helps!

how to create multiple pages in Xcode iphone apps

i am starting my experience with iphone sdk. and i have a question, which is i am trying to create two pages to the app but i don't know how to link them or design them. like when i start the Xcode i find one page named View to design in it, i want to make that page a welcoming page then the user choose one of the three choices he see in that page. Once he clicked on one of them the program take him to the next page or the page he chose.
thank you
The standard approach on iPhone is a drill-down. Place a UINavigationController in your NIB, make the root-level view your welcome page. Then navigate to dependent views by invoking pushViewController on that navigation controller.
This is a very high-level description; you'd have to fill a lot of blanks. If you create a new project and specify a "navigation-based application", you'll get quite a bit of boilerplate code for this approach.
You really need a good book, I recommend Beginning iPhone 3 Development by Apress.
Take a look at using UIViewController's
- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated
method. You can display your initial view, and when the user presses one of the buttons, display the intended view over top. If you build a new project, and choose "Utility Application" you will get some sample code for how this works.