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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-12-2009, 07:12 PM   #1 (permalink)
siasl
Registered Member
 
Join Date: Dec 2008
Posts: 17
siasl is on a distinguished road
Default UIButton title and image alignment query

I have a UIButton and I am trying to set a title and an image on it.

I would like to align the title for a UIButton to the left side and place an image aligned to the right. I am trying to get the look and feel of the button in Timer in Clocks app (the one which says "When Timer Ends").

I fiddled with contentHorizontalAlignment, contentEdgeInsets, titleEdgeInsets and imageEdgeInsets to achieve my goal, but to no avail. The documentation is also quite sparse for the same.

How can I achieve the same?

Also related questions, Timer in Clocks app has two set of Text, one aligned to the left and other aligned right with the image? How can that be done in a UIButton? ( I do not need that functionality though at the moment).

Thanks
siasl is offline   Reply With Quote
 

» Advertisements
» Online Users: 602
13 members and 589 guests
akiraliu, dljeffery, Domele, GVD, ilmman, ITCreative, jerrywenwu, JuanMazuera, linkmx, msovani, OneGoodApp, pinky, soydesu
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,544
Threads: 93,725
Posts: 401,261
Top Poster: BrianSlick (7,954)
Welcome to our newest member, soydesu
Powered by vBadvanced CMPS v3.1.0

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