Posts

Showing posts from July, 2011

Adding block callbacks to the Facebook iOS SDK

http://www.icodeblog.com/2011/07/19/adding-block-callbacks-to-the-facebook-ios-sdk/ Under the covers of OAuth http://www.sociallipstick.com/?p=239

Adhoc build with Xcode 4

http://diaryofacodemonkey.ruprect.com/2011/03/18/ad-hoc-app-distribution-with-xcode-4/

Tools for Server End apps

Look at logs in your web browser http://logio.org/ Command line tools http://kkovacs.eu/cool-but-obscure-unix-tools Via: http://www.smashingmagazine.com/2011/06/17/useful-resources-tools-and-services-for-web-designers/

UILabel size depending on the amount of text

-( float ) getHeightByWidth :( NSString *) myString :( UIFont *) mySize :( int ) myWidth   {   CGSize boundingSize = CGSizeMake ( myWidth , CGFLOAT_MAX );   CGSize requiredSize = [ myString sizeWithFont : mySize constrainedToSize : boundingSize lineBreakMode : UILineBreakModeWordWrap ];     return requiredSize . height ;   }

UIColor Macros

http://iphonedevelopertips.com/cocoa/uicolor-macros.html  #define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]  #define RGBA(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] // Code without the macro msgLabel.textColor = [ UIColor colorWithRed : 255 / 255.0 green : 251 / 255.0 blue : 204 / 255.0 alpha : 1 ] ;   // Or like this... msgLabel.textColor = [ UIColor colorWithRed : 1.0 green : .98 blue : .8 alpha : 1 ] ;   // Code with macro msgLabel.textColor = RGB ( 255 , 251 , 204 ) ;

Custom UITableViewCell

http://www.bdunagan.com/2009/06/28/custom-uitableviewcell-from-a-xib-in-interface-builder/