Forum

Current User: Guest
Please consider registering


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

pickerView

No Tags
UserPost

22:14
14 marzo 2010


AndreaCappellotto

Trento

Member

posts 78

Ciao, sto utilizzando una pickerView per avere una selezione, solo che sto avendo un po di problemi. Io creo l'oggetto da codice, e fin qui nessun problema:

pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(135, 80, 180, 130)];

pickerView.showsSelectionIndicator = YES;

[pickerView setDelegate:self];

[pickerView setDataSource:self];

ora però vorrei togliere il fastidioso sfondo grigio…. 

avete un idea di come potrei fare??

10:52
17 marzo 2010


Admin

Admin

posts 175

Per quanto riguarda la parte grigia puoi sovrapporre alla tua UIPickerView un' UIImage contenente un .png (con il centro trasparente)

Se vuoi invece personalizzare lo sfondo degli elementi al suo interno, puoi creare una tua vista personale da usare per ogni elemento:

– (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
No Tags


Reply to Topic:
pickerView

Guest Name (Required):

Guest Email (Required):

HTML Editor
Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
11 + 11
   




About the devAPP forum

Forum Timezone: Europe/Rome

Most Users Ever Online: 31

Currently Online:
5 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 4
Forums: 21
Topics: 294
Posts: 815

Membership:

There are 377 Members
There have been 27 Guests

There is 1 Admin

Top Posters:

AndreaCappellotto – 78
El Jobso – 33
xTuMiOx – 31
Neo – 20
andber – 20
manuel – 20

Recent New Members: nicsoftware, rael64, cosca66, wstudio, dueOS, devilman

Administrators: Admin (175 Posts)