Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-26-2008, 04:39 PM   #1 (permalink)
I can't think without pen
 
Join Date: Jul 2008
Location: New York
Posts: 72
aahmed753 is on a distinguished road
Default UISegmentedControl acting like toggle...

I think everyone already knows that UISegmentedControl with two elements acts like toggle, regardless which segment (button) is pressed... is there anyway to disable this feature? thanks.
aahmed753 is offline   Reply With Quote
Old 07-26-2008, 10:28 PM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Location: United Kingdom
Posts: 6
safa_uk is an unknown quantity at this point
Default

Yes there is use this code in the awakeFromNib function or what ever function gets loaded first.

Code:
nameOfSegmentedController.momentary = YES;
or in Interface Builder select the UISegmentedController and there is a toggle button in the properties called momentary, just select it and you get exactly the same effect.

This will get rid of the selection when the user selects the UISegmentedController tab item.
safa_uk is offline   Reply With Quote
Reply

Bookmarks

Tags
uisegmentedcontrol

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 342
5 members and 337 guests
givensur, ipodphone, jbro, mer10, yomo710
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,881
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:09 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0