Can we implement Tabview functinality in iPhone?

Hello everybody,
I want to implement tabView functionality(like in cocoa development) in iPhone. I am using UISegmentedController for that but I think it is not providing us TabView type functionality because regardless of the tab selection our is remaining constant.
Is anyone know, is it possible in iPhone or not? and if yes then which control should I use?
Thanks,
Pandit Pakhurde

There's no single control for this. I'd suggest that you create a UIView for each pane, then create a container UIView with the segmented control and a placeholder UIView. In your viewDidLoad method, replace the placeholder with the default pane; connect an action to the segmented control that loads the appropriate pane when the segmented control's selection changes.
If you want to be fancy, you could make each of the panes be a different view controller. This would take more code, but it'd let you load the panes into memory as you needed them, and you could keep the logic for the individual panes separate.
For that matter, if you kept the panes' view controllers in an array and dynamically set up the segmented control with the controller array, you could create a generic SegmentedViewController class that you could reuse in other projects.
...but that SegmentedViewController sounds a lot like a UITabBarController, doesn't it? Sure, it uses a different UI element, but it pretty much does the same thing. Maybe you should consider using a tab bar instead of a segmented control; that would allow you to use the built-in class, which is well-tested, easy to set up, and has a lot of smarts.

Similar Messages

  • Can we implement payment(like paypal) functionality from iphone application

    Hi,
    I need to implement payment functionality like paypal which will provide functionality that user can pay the bill of restaurant.
    I want to know that is it possible and if yes then how can i implement this.
    Thanks,
    Hareh.

    I would imagine you would use the PayPal model where the diner would give his account name or number to the waiter. The waiter logs on and creates an invoice against the users account. The user logs on with his name and password and approves the transaction and the money is transferred to the restaurant's account immediately.
    You could write your own app that attaches to the server directly and prompts the user for their name and password, displays all waiting invoices and lets the user approve. This would also be possible from a regular web browser as well. But you could write a lightweight app specifically for that if you want. You could dress it up with a tip calculator and other things to make it fancy. (Although in the French market the tip is usually included in the bill.)
    The most important thing is to use the existing security measures because you will get much better security using https: to conduct your web transactions then writing your own security model. You also get better security holding this information on the server and not in the phone itself.
    I know you're asking about iPhone only but I would open it up to all browsers - Blackberry, laptops etc. Restaurants could even have a web terminal where I could log in and approve the transaction without the phone. The bigger your potential market the greater your chance of success.
    =Tod

  • How can I implement an iphone application, it hides when started running?

    Hi
    Is there anyone who can be tell me whether it is possible to implement an iphone application in such a way that it hides automatically when starts running. If it it possible, please help me how it can be implemented. As I need it for my application, this application will only update current gps data into the server at regular interval that is set by the user.
    Thanks.

    No background processes are allowed on the iPhone.

  • HT4061 how can i transfer ringtones from one iphone to another

    How can I transfer ringtones from one Iphone to another

    See this discussion...
    https://discussions.apple.com/message/15611504#15611504
    From the  More Like This  on the right

  • How can I send stuff from one iPhone to another via Bluetooth?

    How can I send stuff from one iPhone to another via Bluetooth?

    There are some apps that will let you send photos from one iOS device to another over BT.

  • Can you sync attachments from an iPhone to a Windows PC with Outlook 2007?

    Can you sync attachments from an iPhone to a Windows PC with Outlook 2007? I would like to receive email on the iphone with attachments and then sync the attachments to a Windows XP PC with Outlook 2007 without Outlook 2007 having to connect to the mail server itself and having to separely download the attachment. Is this possible?
    I have only tried one pdf file which downloaded wonderfully to the iPhone. I synced to the PC without the PC being connected to the email account. This also worked except that when I tried to open the attachment on the PC I got a message that the mail wasn't fully downloaded. When I went on=line on the PC, it downloaded the attachment. I would love to have this option because I can't access some email accounts from my corporate computer.

    Can you sync attachments from an iPhone to a Windows PC with Outlook 2007? I would like to receive email on the iphone with attachments and then sync the attachments to a Windows XP PC with Outlook 2007 without Outlook 2007 having to connect to the mail server itself and having to separely download the attachment. Is this possible?
    No it is not. The only information synced regarding email accounts is the email account information only and this is in one direction only - from your computer to the iPhone via iTunes.

  • I can't find Siri on my iphone 5s when I hold the home key voice commands comes up and Siri isn't in my settings

    I can't find Siri on my iphone 5s when I hold the home button voice control comes up. When I go to settings Siri is not there. Has anyone else experienced this?

    Check Settings>General>Restrictions and see if they are turned on and Siri is restricted.

  • How can I find/sync my old iPhone camera roll photos?

    I've searched about 5 different ways here on the forums and can't find an answer to this question. I recently upgraded my iPhone 3Gs to an iPhone 4. I backed up the old phone and just sold it a couple of days ago. Here's my problem: I can't find the folder containing my (old) camera roll photos so I can sync them to my new iPhone. I'm aware that iTunes doesn't back up camera roll photos, however I understand they are saved as part of the standard backup process. Are they included in the "iPod Photo Cache" and, if so, can I use this to copy them onto my new phone? Note that I was unaware until today that I can save camera roll photos on my PC using Windows Camera and Scanner or Adobe Photoshop; I'll start doing that tonight so I'll have them in a separate folder from now on. I'm running Windows Vista on my PC, FYI.
    Thanks,
    Steve

    Is there a way for me to save what's currently on my phone?
    No. If you restore your new phone from a previous backup, all data on your phone will be erased & replaced with the data from your backup. However, if you don't want to do that you can see if this will recover the photos in question from your 3GS backup:
    http://www.iphonebackupextractor.com/

  • HT1657 I downloaded a movie from iTunes on my iPhone 4S, went out of the wifi zone and now my movie is no where to be found. I can't find it on my iPhone, Mac or iPad. Where is it?

    I downloaded a movie from iTunes on my iPhone 4S, went out of the wifi zone and now my movie is no where to be found. I can't find it on my iPhone, Mac or iPad. Where is it?

    Sounds like the movie didn't finish downloading before the Wi-Fi signal dropping ...
    Try re downloading. You won't be charged again.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem.

    My Itunes is no longer allowing me to manage my music on my phone i can no longer select on my iphone to make playlists and delete music. Please help fix my problem. Iphone4s, 32gigs, IOS 7.1.2
    I don't know why it stopped working but it happened a month or two ago but the option on this phone that's usually all the way to the left when you select your device but now its not and I don't know what caused it. ive already tried troubleshooting my problem but have found no help.

    Hello Salmomma,
    Thank you for the details of the issue you are experiencing when trying to connect your iPhone to your Mac.  I recommend following the steps in the tutorial below for an issue like this:
    iPhone not appearing in iTunes
    http://www.apple.com/support/iphone/assistant/itunes/
    Additionally, you can delete music directly from the iPhone by swiping the song:
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    iPhone User Guide
    http://manuals.info.apple.com/MANUALS/1000/MA1658/en_US/iphone_ios6_user_guide.p df
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • HT4053 can i set up my new iphone 5s using my ipad (because my work laptop wont allow me to installl itunes).?

    can i set up my new iphone 5s using my ipad (because my work laptop wont allow me to installl itunes).?

    No, but you do not need iTunes to setup a new iPhone 5s. Create an iCloud backup for anything you want to transfer to the new iPhone.

  • How can I install iMessage in my iPhone 4 with 5.0.1 ?

    I installed OS 5.0.1 in my iPhone 4 but didn't get iMessage. I've done the same on my iPad 1 and got it.
    How can I install iMessage in my iPhone 4 with 5.0.1 ?

    It's part of the iOS: Settings>Messages>iMessage>On.

  • How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the Ipad to the Iphone and not the other way around.

    How can I transfer photos from an IPhone 5 to an IPad 2 using a cable.  I have tried using the lightning to firewire adapter with my current lead but this only seems to allow a download from the IPad to the IPhone and not the other way around.

    The devices are not designed for transfer of that kind.  Use Photo Stream as suggested by another poster, or transfer photos to your computer (a good idea anyway since they will be lost if your device needs to be reset), then use iTunes to sync them to the other devices.

  • I am having a problem. When I click on the Mobile Facebook icon it acts like it is going to start opening then it quits and goes back to the icon. So I can't use Facebook on my iPhone 4

    I am having a problem. When I click on the Mobile Facebook icon it acts like it is going to start opening then it quits and goes back to the icon. So I can't use Facebook on my iPhone 4

    Force quit the application and try again.
    Try a reset or restart of the device, trying the app after each step.

  • HT5858 I can't update apps on my iphone 5. theirs an old apple ID. That I don't have the pass word. I've created a new apple ID. but the old one keeps popping up. I have it on the Itunes on the phone but the old one keeps comming up and asking for a pass

    I can't update apps on my iphone 5. theirs an old apple ID. That I don't have the pass word. I've created a new apple ID. but the old one keeps popping up. I have it on the Itunes on the phone but the old one keeps comming up and asking for a pass word. 

    Apps are permanently tied to the Apple ID used to purchase them. You will have to delete the apps from the phone and re-purchase them using your Apple ID.

Maybe you are looking for

  • I can't have my own personal data without a judge seeing it first!

    I have been a Verizon customer since October of 2009. For the most part, I've enjoyed your services. You have extremely helpful customer service representatives both at your stores and through your call center. I didn't even mind when you took away u

  • Charging US phone in Britain

    Does anyone know if a phone bought in US can be charged Britain without a converter.  Not to be confused with an adapter.

  • NAFTA related- URGENT

    Dear Gurus, GTS Currently lists the total cost ? material cost = NAFTA originating cost.  This is not correct because of the way company costs in ECC.  The total cost that is brought over to GTS includes Royalties.  This can not be listed as NAFTA or

  • Not enough memory error when passing an array to a chart

    Hello. I am trying to pass some data from a reading loop to a display loop using queues and charts. In order to save on redraws I am reading the queue just once a while, flush it and pass the resulting array to the Chart. It is actually an array with

  • ORA-00600: Internal Error when running XSQl Script

    Hi, when running a xsql script with JDeveloper 3.1 the following message appears: <?xml version="1.0" ?> - <!-- IRON.xsql Return the results of a table --> - <xsql-error action="xsql:query"> <statement>select ename,job,sal from emp where ename='ALLEN