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

View Single Post
Old 02-22-2009, 03:09 AM   #10 (permalink)
BenODwyer
Registered Member
 
Join Date: Jan 2009
Location: Leeds, England
Posts: 115
BenODwyer is on a distinguished road
Default

Thanks for the code works a treat.

I made one slight modification:

Code:
- (void) sliderAction: (UISlider *) sender
{
	if (customSlider.value != 1.0)  //if the value is not the max, slide this bad boy back to zero
	{
		[sender setValue: 0 animated: YES];
	}
	else {	
               if (customSlider.value == 1.0)  //if the value is max, slide this bad boy back to zero and execute code
	{
		[sender setValue: 0 animated: NO];
        }
                // the rest of your code here.
        }
}
I did this as I am having the custonSlider control my view transition. So I want the slider back at the start on the next view. So I can use it again to go back.

Looks great and you can't accidentally change views!

Great work....

Cheers

Last edited by BenODwyer; 02-22-2009 at 05:30 AM.
BenODwyer is offline   Reply With Quote
 

» Advertisements
» Online Users: 451
21 members and 430 guests
7twenty7, baja_yu, BdR, buggen, BumChinBooth, ChrisYates, dbramhall, Duncan C, Free App Monster, ioani, jeroenkeij, LunarMoon, muhimranss, n00b, nyoe, QuantumDoja, rraagg, TheStalker, TheTakeOver, WeaselPig, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,634
Threads: 94,094
Posts: 402,794
Top Poster: BrianSlick (7,990)
Welcome to our newest member, nyoe
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:58 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.