Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-10-2008, 05:54 PM   #3 (permalink)
ziad
Registered Member
 
Join Date: Oct 2008
Location: Berlin, Germany
Posts: 7
Default

Hi,
here are the answers of my questions:
  1. For my first question: Today I ask a speaker in Apple tech Talk in Berlin and the answer is: the API for that is not public for iPhone. So I think we have to implement it. you can try to use an image (set the alpha value as needed) so you have it as background for the text (substring), calculate the Rect of this substring than user the method [yourImage drawInRect: aRect] to draw the image. I did not try it but it just a idea
  2. For a multiline text we need UITextView and we have to calculate the height of the text. here is a link that show you how to do this: Autosizing UILabel for a certain # of lines. - iDevKit
    or this link: iPhone dev - UILabel multiline and dynamic height
ziad is offline   Reply With Quote
 

» Advertisements
» Online Users: 783
22 members and 761 guests
annchavez78, at0m87, dfvdan, Domele, elhanche, ghz.rai, gladlard24, Gurpartap Singh, HerbertMIbarra, ilmman, Macaret, Meoz, MSJJ, nidie, oztemel, phackdat, ratheesh, smethorst, socbaybot, soonw29, Tambourin, twerner
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,822
Threads: 89,206
Posts: 380,635
Top Poster: BrianSlick (7,129)
Welcome to our newest member, gladlard24
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:29 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.