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-19-2011, 11:46 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 36
MacBuddy is on a distinguished road
Default UITextField & UITextView Help

Hi, I'm trying to figure out a way to highlight keyboard in a UITextView or TextField. I'm trying to do something like this...

The UITextView's text color is set to black. When the user inputs a url i'd like to be able to set the url a different color to the actual text. How would I go about this?
MacBuddy is offline   Reply With Quote
Old 01-19-2011, 01:23 PM   #2 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Atlanta, GA
Posts: 148
tripp13 is on a distinguished road
Default IB

Quote:
Originally Posted by MacBuddy View Post
Hi, I'm trying to figure out a way to highlight keyboard in a UITextView or TextField. I'm trying to do something like this...

The UITextView's text color is set to black. When the user inputs a url i'd like to be able to set the url a different color to the actual text. How would I go about this?
With a textView, in IB just check the boxes under the inspector for phone, url, etc. Xcode will detect words and numbers that should be "hyperlinked" and do it for you.
tripp13 is offline   Reply With Quote
Old 01-19-2011, 02:01 PM   #3 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 36
MacBuddy is on a distinguished road
Default

Quote:
Originally Posted by tripp13 View Post
With a textView, in IB just check the boxes under the inspector for phone, url, etc. Xcode will detect words and numbers that should be "hyperlinked" and do it for you.
Can't believe I missed that!

Thanks
MacBuddy is offline   Reply With Quote
Old 01-19-2011, 02:52 PM   #4 (permalink)
Registered Member
 
Join Date: Oct 2010
Location: Atlanta, GA
Posts: 148
tripp13 is on a distinguished road
Default

Quote:
Originally Posted by MacBuddy View Post
Can't believe I missed that!

Thanks
No problem
tripp13 is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, textview, uitextfield

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: 360
12 members and 348 guests
7twenty7, blueorb, dre, iAppDeveloper, jeroenkeij, Mah6447, Morrisone, mottdog, sacha1996, Sami Gh, stanny, toon4413
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

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