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 07-14-2010, 04:47 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 1
cotton is on a distinguished road
Question Keyboard + Text Field/View

Hey guys,

Let me thank you in advance for your responses. Right now I have my application linked to remotely input text via the keyboard to another device. I have a UIButton which displays the keyboard, but I would also like it to display a Text Field or Text View. In theory, the text field is to just display the input values of the keyboard while the application also sends this text remotely. Any thoughts how to have the UIButton show both the keyboard and a text field and link those two together?

Thanks!
cotton is offline   Reply With Quote
Old 07-14-2010, 06:57 PM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Long Beach, CA
Posts: 612
bytor99999 is on a distinguished road
Send a message via AIM to bytor99999 Send a message via Yahoo to bytor99999
Default

Why are you using a UIButton to be more than just a button?

In OO terms you are lowering you cohesion in that class, meaning adding responsibilities to a class that just shouldn't be responsible for. Why not have a UIView and add subviews to it to get the entire screen with UI widgets that you want all in it, and a ViewController to act as the code behind it?

UIButton inherits from UIView to support button specific stuff only.

Mark
__________________
Perfect World Programming LLC
http://www.perfectworldprogramming.com

Please check out my apps.

TubeOrganizer
http://www.spritzlerapps.com/tube-organizer.html

Paper Clips
http://spritzlerapps.weebly.com/paper-clips.html
bytor99999 is offline   Reply With Quote
Reply

Bookmarks

Tags
keyboard, textfield, textview

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: 333
14 members and 319 guests
akphyo, alexP, appservice, cgokey, EXOPTENDAELAX, flamingliquid, guusleijsten, mariano_donati, ohmniac, Paul Slocum, PavelSea, SLIC, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

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