How To Put A UITextField In A UIAlertView

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,127
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 6, 2009

http://www.HowToMakeMobileApp.com Hi,
If you want to make iPhone Apps the fast, easy, and affordable way WITHOUT ANY EXPERIENCE, then get the "How To Make Mobile App" course.
Click here to download now: http://www.HowToMakeMobileApp.com
Inside the "How To Make Mobile App" course, you will discover these secrets:
- You can create iPhone apps without any programming experience.
- Discover iPhone app secrets from a guy who made over $800,000 with apps. - Impress family and friends that you are a iPhone app owner.
- Make money online month after month without doing a thing.
- Create iPad apps to reach millions of iPad users worldwide!
- This system was talked about in the NEW YORK TIMES!
- And much more!!!
Click here to download now: http://www.HowToMakeMobileApp.com

In this tutorial today I show you guys how to put a UITextField in an UIAlertView. Since Alert are made straight from code and cannot be dragged in interface builder we make the UITextField programmatically in the app. It is quite simple and we also use a little of CGAffineTransform.

Source Code
http://tr.im/EoSr

Website
http://www.appstoremod.com

Need An App Made? Go Check Out
http://tr.im/modservices

  • likes, 3 dislikes

Link to this comment:

Share to:

Uploader Comments (XcodeMod)

  • I'm fairly new to xcode, but you didn't put any of that into the .h file. Is that because you used only the built in methods?

  • @brianmcgoangill putting stuff in the .h file is needed if you need it over several methods

    or if you need to connect it in your interface builder

  • How do you use the text they enter into the textfield?

  • @iminichrispy then you need to add the definition of a textfield to your .h file, then call it just like you would use it in any other UITextField

see all

All Comments (17)

Sign In or Sign Up now to post a comment!
  • Question, now that you typed in the text in the alert, how can I access that value now after I hit ok?

  • I think you should also release myTextField.

  • What happened when you rotate the simulator.. your code will not work. it tried with iPhone 3.0 version and i managed it once you rotate the simulator then keyboard you can hide by clicking on Done button.. but the same code do not work for iPhoneOS4.0

  • Let's say the textfield instide the alert view is named "textfield1". In your original view you have a uilabel named "label1." the code is pretty much: label1.text = textfield.text." place this code where you have the code for when one of the buttons on the alertview is. There are some videos on youtube on how to set the actions of an alertview.

    If this is confusing, I can upload some code that I have and send you the link. Message me if you want me to do this.

  • haha wanna tell me? or link me to where you saw it?

  • @taimur38 yea... it's a little complicated if you haven't used xcode frequently

  • Did you ever get an answer for this?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more