Posts

Showing posts from March, 2014

Create your own framework in Objective C.

Important link http://blog.db-in.com/universal-framework-for-ios/ http://jaym2503.blogspot.in/2012/09/how-to-create-custom-ios-framework.html

AttributedString - decorated text.

Image
NSMutableAttributedString :  NSAttributedString  and its mutable counterpart  NSMutableAttributedString  are used to draw decorated text.  You can create strings with attributes that describe how the string should look when drawn.  Show OutLine String on button : If you want to show outline text on button then you can use NSMutableAttributedString. NSMutableAttributedString * title =[[ NSMutableAttributedString alloc ] initWithString :@ "Rajneesh071" ]; [ title setAttributes :@{ NSStrokeWidthAttributeName : @ 3 , NSStrokeColorAttributeName : [ UIColor blueColor ] } range : NSMakeRange ( 0 , [ title length ])]; [ yourButton setAttributedTitle : title forState : UIControlStateNormal ]; OutPut : Play with text font :  I f you want to change font name and font size then you can do like this. NSMutableAttributedString *string = [[ NSMutableAttributedString alloc ] initWithString : self .