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 01-25-2012, 01:17 PM   #1 (permalink)
Registered Member
 
sacha1996's Avatar
 
Join Date: Mar 2011
Posts: 415
sacha1996 is on a distinguished road
Default Weird thing in AlertView

Hi,

I have a AlertView with 4 textfields in it.
The "OK" button behing one of the 4 textfield, so I use "\n" in the message to make the AlertView bigger so that the "OK" comes under the 4 textfields.

You can see I use 5 "\n" , that's not enough, but when I write a sixth one, and run the app, I can see the alertview with a white scrollview instead of 4 textfields with the "OK" button lower than before...

Do you know why?

UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Edit", @"Edit") message:@"\n\n\n\n\n" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];


sacha1996 is offline   Reply With Quote
Old 01-25-2012, 01:20 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

If you dump a ton of text into an alert view, it will show with a scroll view. Test this for yourself.

Chances are that if you are putting 4 textfields into an alert view, it's time to rethink your UI.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 01-25-2012, 03:16 PM   #3 (permalink)
Registered Member
 
sacha1996's Avatar
 
Join Date: Mar 2011
Posts: 415
sacha1996 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
If you dump a ton of text into an alert view, it will show with a scroll view. Test this for yourself.

Chances are that if you are putting 4 textfields into an alert view, it's time to rethink your UI.
Hi,

I wanted to put the textfield in another view, but than I had to share object between views and it was to difficult....

Is there another way to make the "OK" button more down than it is now?
sacha1996 is offline   Reply With Quote
Old 01-25-2012, 04:47 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

Not sure, but if you can't handle passing an object around, then you definitely can't handle that.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 01-26-2012, 12:17 AM   #5 (permalink)
Registered Member
 
sacha1996's Avatar
 
Join Date: Mar 2011
Posts: 415
sacha1996 is on a distinguished road
Default

Quote:
Originally Posted by BrianSlick View Post
Not sure, but if you can't handle passing an object around, then you definitely can't handle that.
Thanks
sacha1996 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: 392
11 members and 381 guests
Atatator, condor304, FrankWeller, glenn_sayers, iphonedevshani, MAMN84, mraalex, PowerGoofy, QuantumDoja, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,123
Posts: 402,908
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

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