PDA

View Full Version : UISlider question




TheDozer
Nov 27, 2009, 03:57 PM
Hi all programming pros

is there some way to get the UISlider send the value until released ?
Hope you understand what I'm looking for...

Cheers'



Darkroom
Nov 27, 2009, 04:06 PM
check the "continuous" (i think that's what it's called) box in IB

TheDozer
Nov 27, 2009, 04:16 PM
Thanks :)
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UISlider_Class/Reference/Reference.html#//apple_ref/occ/instp/UISlider/continuous

not easy to find info when you don't know what to search for :)

TheDozer
Nov 27, 2009, 04:19 PM
continuous

Contains a Boolean value indicating whether changes in the sliders value generate continuous update events.

@property(nonatomic, getter=isContinuous) BOOL continuous

Discussion

If YES, the slider sends update events continuously to the associated targetís action method. If NO, the slider only sends an action event when the user releases the sliderís thumb control to set the final value.

The default value of this property is YES.


how do I set it to no ?

Yes I'm a noob

dejo
Nov 27, 2009, 04:56 PM
how do I set it to no ?
Start by learning Objective-C (http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html) first..

TheDozer
Nov 27, 2009, 05:01 PM
Start by learning Objective-C (http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html) first..

Thank you helpful.

TheDozer
Nov 27, 2009, 05:01 PM
found a switch in xcode that fixed it for me :)

dejo
Nov 27, 2009, 05:10 PM
found a switch in xcode that fixed it for me :)
You'll still want to learn Objective-C though.

North Bronson
Nov 27, 2009, 08:01 PM
found a switch in xcode that fixed it for me :)

Interface Builder can be a great tool for someone who really knows their way around Cocoa. The problem is that Interface Builder abstracts so much out of the process that I don't think it's a great idea for beginners to "Learn Cocoa" with it.

Besides, there are many attributes for views that you cannot modify in Interface Builder; you will have to drop down to code sooner or later.

TheDozer
Nov 28, 2009, 06:27 AM
all of you are off course right :)

I'm trying to do it at the same time :)
Objective-C, Cocoa and Cocoa-touch haha some evenings my head is spinning

I have found a new love ESPRESSO !