Posts

Showing posts from September, 2012

In Application Emailing

http://www.icodeblog.com/2009/11/18/iphone-coding-tutorial-in-application-emailing/

iOS5: Saving photos in custom photo album

This link is useful to save photos in custom Photo album http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/ Get All pictures from ios photoLibrary in an Array using assets library http://stackoverflow.com/questions/12633843/get-all-pictures-from-ios-photolibrary-in-an-array-using-assets-library

Using Blocks in iOS 4: The Basics

Block objects are a C-level syntactic and runtime feature.  The caret symbol (^) is used as a syntactic marker for blocks. They are similar to standard C functions, but in addition to executable code they may also contain variable bindings to automatic (stack) or managed (heap) memory. A block can therefore maintain a set of state (data) that it can use to impact behavior when executed. Blocks are objects that encapsulate a unit of work—or, in less abstract terms, a segment of code—that can be executed at any time. **blocks are function and can be pass as argument in function** They are essentially portable and anonymous functions that one can pass in as arguments of methods and functions or that can be returned from methods and functions. You may also assign a block to a variable and then call it just as you would a function. int (^Multiply)(int, int) = ^(int num1, int num2) { return num1 * num2; }; int result = Multiply(7, 4); // Result is 28. ...

Make Multiple Label and Button in a single line

Using this code we can make label and button , no need to write code again and again. //MakeLabel -( id ) makeLabelWithTag :( int ) tag andX :( CGFloat ) x Andy :( CGFloat ) y andWidth :( CGFloat ) width andHeight :( CGFloat ) height andText :( NSString *) Text andFontName :( NSString *) fontName andFontSize :( CGFloat ) fontSize andFontColor :( UIColor *) color { UILabel * label = [[ UILabel alloc ] initWithFrame : CGRectMake ( x , y , width , height )]; label . text = Text ; label . tag = tag ; label . backgroundColor = [ UIColor clearColor ]; label . textColor = color ; NSString * fontName2 = @ "verdana" ; label . font = [ UIFont fontWithName : fontName2 size : fontSize ]; [ self . view addSubview : label ]; return self ; } //Make Button -( id ) makeBtnWithTag :( int ) tag andX :( CGFloat ) x Andy :( CGFloat ) y andWidth :( CGFloat ) width andHeight :( CGFloat ) height andImageName :( NSS...

Make TextField and Label dynamically in scroll View based on arrayValue and count

Make Label :- using this we can make label dynamically based on array value  categoryAry =[[ NSArray alloc ] initWithObjects : @"Object1" , @"Object2" , @"Object3" , @"Object4" , @"Object5" , @"Object6" , @"Object7" , @"Object8" , @"Object9" , @"Object10" , nil ]; -( void )mekeAllLabelDynamicly {     CGFloat startX= 50.0f ;     CGFloat startY= 150.0f ;     for ( int i = 0 ; i< [ categoryAry count ]; i++)     {         UILabel *label=[[ UILabel alloc ] init ];         label. text = [ categoryAry objectAtIndex :i];         label. tag =i;         label. textColor = [ UIColor whiteColor ];         label. backgroundColor =[ UIColor clearColor ];         CGRect frame= CGRectMake (startX, startY+( 31 + 10 )*i, 100 , 31 );         [label setFrame :frame]; ...

Object-Oriented Programming and the Objective-C Language

Objective C   http://objc.toodarkpark.net/

IN APp Purchase

Implement In App Purchase The Easy Way, Ever. http://xcodenoobies.blogspot.in/2012/04/implementing-inapp-purchase-in-xcode.html http://adcdownload.apple.com//wwdc_2011/adc_on_itunes__wwdc11_sessions__pdf/510_inapp_purchase_for_ios_and_mac_os_x.pdf http://docs.xamarin.com/guides/ios/application_fundamentals/in-app_purchasing/part_1_-_in-app_purchase_basics_and_configuration http://stackoverflow.com/questions/6570163/invalid-product-id-in-inapp-purchase

InterView Question's

Hello All , find below some iPhone interview questions . I hope this will help you to face the technical interview . I will be modifying this post with some more questions and answers in a couple of days , so keep checking this post for more . 1.  What is @interface? - It’s a keyword used to declare the Class. 2.  What is @implementation? - It’s a keyword used to define the Class. 3.  Garbage collector in iPhone? - iOS 5.0 has got the ARC ( Automated reference counting ).  Objective C does not have a garbage collector rather it uses the reference counting algorithm to manage the memory. This was the developers task until Apple launched iOS 5.0. Again if you are targeting iOS 4.0 or earlier , ARC is no more a choice for you . 4.  What is delegate? - Delegate is an object that handles the events happening on an object. To do that delegate has to follow a protocol specifying the task it is going to handle . 5...