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 08-10-2010, 10:16 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 25
R40ul is on a distinguished road
Default Customize Picker (background / speed)

Hello,
I'm googling for hours and didn't any solution to my problem. I hope someone will be able to help me there
For my current app, I need to customize a picker in order to have a kind of horizontal scroller which will be used to selected an int within a big range ( 0 to 5000).
I already managed to rotate my Picker, and to fill it with images, and it looks pretty cool :

Thus, as you can see on my screenshot that I have a problem : the Picker displays at its beginning and its end some white empty lines.
Is there a way to change the picker's Background color ?
I tried several things, like :
Code:
 - (UIImageView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view{
	view.backgroundColor = [UIColor redColor];
or
Code:
myPicker.backgroundColor = [UIColor redColor];
But it's not working.
Then, I tried to use some white images, and to put a transparent red image over my Picker, but the result isn't good :s

Have you got any other idea to change a pickers background color ?

The second part of my problem is that the picker runs very slow, and when you need to scroll from the 1st to the 5000st element, it takes too much time.
Is there a way to change the pickers speed ?

Thank you very much for your answers !
R40ul is offline   Reply With Quote
Old 08-11-2010, 06:40 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 25
R40ul is on a distinguished road
Default

Any ideas ?
(sorry for the up, but I'm still stuck)
R40ul is offline   Reply With Quote
Reply

Bookmarks

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: 349
9 members and 340 guests
bignoggins, Chickenrig, firecall, iNet, linkmx, michaelhansen, Objective Zero, PlutoPrime, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,893
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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