Process to design a Custom Tab bar - iphone

I am trying to create a custom tab bar for a universal application wherein i need to set the frame size accordingly. Kindly help me out with this..

if you are making universal app, so u need to make custom tab bar on the window base project, take image view, uibutton (custum button) ,images as per as your look and set all those accordingly. call the controller on the click of the custom button.

Related

Using NSToolbar in Storyboard to build a Preference Panel through Triggered Segues

I try to use Storyboard to link an NSToolbar to different View Controller through Triggered Segues. I want them all to be opened in the same Window Controller. Here is a screenshot:
Clicking on each NSToolbarItem opens a new window instead of the same Window Controller. Any idea how this can be done without coding?
Thanks for any help
enter image description here
Basically, what you need to do is to just use an NSTabViewController - Set it and your window content and also select what style you want your toolbar to have! See image.

How to add a custom colorful Image to a tabBar in a TabBarController?

I am using a UITabBarController where i want to load a custom colorful image to the respective TabBar. I want to customize the font size,color and type of the Text for the UITabBar item. I have tried out many possibilities by using image property for the tabBar and tried to create a imageview and adding it as an subview to the tabBar. Can someone please provide any alternative to this problem?
The only way for this is implementing your own custom tab bar controller. You can find many tutorial on the web if you google "custom tab bar". This is one for iOS 5. And here, you can find another.

Switchable subview in window for iphone app

I've been looking everywhere but can't seem to find any examples/tutorials for my situation (not sure how to google it..)
So i have a window where a portion of it should be static (buttons and such) and there is a dynamic part (bottom leftish) that should change subviews.
So what i'm looking for is a way so that clicking the buttons in the static area will change the dynamic area to a view of my choice. I have no idea how to do this using the IB, but doing it programatically seems the only way. Any suggestions(I do not want to use a tab bar controller)?
Oh, and is there a benefit to making views and such programatically vs through the IB?
Thanks!
You can also achieve it programatically. Just create another viewcontroller class (as many as u want). In the loadView method of it create a UIView in the coordinates where u want to add the subview in the current view. Now create an instance of this viewcontroller class in the currentview controller and add it as a subview. You will get the subview at the desired location.If u want to change it dynamically create as many views and then add them to the array and change them whenever the button is clicked.
Hope this helps.
You should perform the switch in your view controller. The static buttons can have their actions hooked up to that controller (in IB), which can have an outlet (in IB) to the subviews and perform the swap.
As for when you should use IB, see this question.
You can do it from interface builder as well. You just need to take viewController from interface builder drag-n-drop to main window. assign IBAction to all buttons to add different viewController's view to main window just make their frame some smaller.
if u want to change or views by click on button then u chose segmentcontrol switch. and cod for each segment like as when click on segment 0 then open first sub view and when click on segment1 then open second sub view. And make by default unselected so that ur static view will appear initially lunching of view.

How to handle sub-content in tabGroups in Titanium Mobile

What is the designated way to handle alternating content in the active tab of a tabGroup?
In my case I have a tableview with a toolbar on top, and when a row is clicked, I'd like to switch the content in that tab to a new content with a different (edit) toolbar.
In the KitchenSink demo app the window is just replaced as far as I can see. Is this the way to go? How are transitions handled?
Thank you for your answers,
Chris
You can open the new window on the current tab:
tab.open(newWindow);
This will use the standard iOS navigation transition animation.
Also, you can configure a window's navigation bar (top bar) without needing to create and add a toolbar using Window properties like title, leftNavButton, rightNavButton. For example, create an edit button and then do:
newWindow.rightNavButton = editButton;
Also, you can create a standard edit button by setting the systemButton property to Ti.UI.iPhone.SystemButton.EDIT.
Finally, to create a system button with any title, set title property and also set the style property to Ti.UI.iPhone.SystemButtonStyle.BORDERED.

displaying sub menus on tab bars in iphone apps

Is it possible to display a sub menu on a tab bar in iphone apps. I mean when a user clicks on a tab, instead of displaying a new view, displays a new set of buttons on the top of the tab.
Does anyone know how to implement this?
Well, you can't do it without displaying a new view but that view does not have to fill the screen. If you create a custom UIView subclass that positions itself under the button pressed, you can get the behavior you want.