Re: iOS: String Drawing

2011-07-13 Thread Filip van der Meeren
Damn, that is kind of sucky... I was trying to create something like the navigator bar in Xcode, you know those top 7~8 icons that function a bit like a tabbar... That means that I will have to manage the outer rims of the segmentControl myself. I was hoping that wasn't necessary... - Filip On

Re: iOS: String Drawing

2011-07-12 Thread Kyle Sluder
On Tue, Jul 12, 2011 at 9:26 AM, Development wrote: > Well because the label can be rotated, I had to stick it inside of another > view (Otherwise when I moved or scaled it, the whole thing went nuts). So in > that view's code where the actual  shadow was set it resizes it's rectangle > as well

Re: iOS: String Drawing

2011-07-12 Thread Development
Well because the label can be rotated, I had to stick it inside of another view (Otherwise when I moved or scaled it, the whole thing went nuts). So in that view's code where the actual shadow was set it resizes it's rectangle as well as the label's. However, on the bright side using CALayer f

Re: iOS: String Drawing

2011-07-12 Thread David Duncan
On Jul 11, 2011, at 11:49 PM, Development wrote: >CGSize newSize = rect.size; >CGSize imgSize = [self.text sizeWithFont:self.font]; >imgSize.width +=6; //this does nothing > //everything below adjusts for the shadow which is a flipping train > wreck of its own. > CGPoint

Re: iOS: String Drawing

2011-07-12 Thread Development
Ok… Thank you very much both of you, I missed radius and opacity. Those were the two things I wanted which I was using my code to get On Jul 12, 2011, at 6:36 AM, Jeff Kelley wrote: > To echo Graham’s point, you can also use the CALayer of the label and modify > its properties to get a more cus

Re: iOS: String Drawing

2011-07-12 Thread Jeff Kelley
To echo Graham’s point, you can also use the CALayer of the label and modify its properties to get a more customized appearance. You’ve got shadowColor, shadowOffset, shadowOpacity, shadowPath, and shadowRadius. Between those properties and the label’s built-in shadow support, there’s a lot of cust

Re: iOS: String Drawing

2011-07-12 Thread Graham Cox
AFAIK, you don't have to subclass UILabel - it has a shadowColor/offset property that you can set as you wish, and it should all "just work". Sure, the default values are sometimes a bit questionable, but all you need to do is to set those shadow properties in IB or in code. You're doing way to