" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

How to make UIView with RoundRect Corner and border in iPhone/iPad App?

Posted on November 24th, 2015 by Waseem Ahmad

In iPhone application  development, when we are required to show UiView with round rect corners, we genrally use images with border or round rect corner in background view. However, we can also meet the requirement by using layer properties. Example 1. Round rect corner just we need to set corner radius property of view layer […]

How to implement vertical slider in iPhone/iPad?

Posted on November 24th, 2015 by Deepak Vashisht

 In iPhone/iPad UITextview shows slider on the right side of the display only when we tap on it. So the user is not able to know that the text is scrollable. For this reason clients sometimes demand that we use a vertical slider to show that the text is scrollable. One approach is to create a nib file […]

Embedding YouTube Videos in a Grid View in iPhone App.

Posted on November 24th, 2015 by Deepak Vashisht

In many projects, YouTube videos are embedded and there is a need to display these images in grid view. For displaying videos in grid view, we have to create another view for thumbnail view, create objects for this view and add it to the main view. However, I have a simpler and effective solution for this: Sample Project for […]

Showing and Hiding iAD Banner View in iPhone App

Posted on November 24th, 2015 by Deepak Vashisht

iAd Banner view is implemented to show advertisements in the iphone app.It is mostly placed at the top or at the bottom of the view of the app and it depends upon network connectivity to load the advertisement. Due to connection error ,it is sometimes not able to load the Ads as a result of which it is […]

Using jQuery Plugin to implement scrollbar in iPad,

Posted on November 24th, 2015 by Sandeep Agrawal

Since normal scrollbar implemented for browser does not work in iPad, we can implement it using JScollPane which is a jQuery plugin. The files can be downloded from the following links: JS files: (www.kelvinluck.com/assets/jquery/jScrollPane/scripts/)   jScrollPane.js(for scrolling) jquery.mousewheel.js(scrolling with mouse wheel) jquery-1.3.2.min.js(jquery plugin) CSS file: (www.kelvinluck.com/assets/jquery/jScrollPane/styles/) jScrollPane.css(for scroll images) Scroll Images: (www.kelvinluck.com/assets/jquery/jScrollPane/images/) windows_arrow_down.gif windows_arrow_up.gif windows_drag_bottom.gif windows_drag_middle.gif windows_drag_top.gif windows_track.gif […]

FQL, Permission , Facebook and iPhone

Posted on November 24th, 2015 by Deepak Vashisht

Permissions are required to perform a task. Suppose, we own a house having a number of rooms.No one will able to enter until they have key (Here key act as permission). And we can provide key of some rooms to other , so that they can do specific function in behalf of owner. So, for […]

Retina display issue with layer drawing in iOs

Posted on November 24th, 2015 by Waseem Ahmad

As most of us know 2x images are directly supported by iOs SDK for retina display, but it doesn’t support in case of layer. However, we have got this issue in one of the project where we are drawing image on a layer and images are showing blur.  The main reason behind this is that […]

How to make cell height dependent on text length?

Posted on November 24th, 2015 by Waseem Ahmad

Generally, we use cell for displaying the text, sometimes text length may vary like in case of showing details. We face issue how to make cell height dependent on text length? here, I am writing small tip that will help you to determine height of cell depending on text length.   Step #1First fix the […]

How to crop image in iOs?

Posted on November 24th, 2015 by Waseem Ahmad

Some times you need to crop image in perticular size in your App. You can use this utility function for this purpose. + (UIImage*) cropImage:(UIImage*)inImage ofSize:(CGSize)inSize { if (inImage) { CGRect thumbRect = CGRectMake(0, 0, inSize.width, inSize.height); UIGraphicsBeginImageContext(inSize); [inImage drawInRect:thumbRect]; UIImage *thumbImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return thumbImage; } else return nil; }  

Generating ICS file format

Posted on November 24th, 2015 by Tauheed Ahmad

I got the solution to generate the .ics file. To create any .ics file in your document directory or somewhere else then you need to pass the string to write the file. But must need to be in string format.�€�The real string format to write the file of .ics is:   BEGIN:VCALENDAR PRODID:-//Google Inc//Google Calendar […]

How To Set UIBarButtonItem Text Color Or Font

Posted on November 24th, 2015 by Rupesh Kumar

Here is a method in UIBarItem class, where you can send your custom text attributes into dictonary form.   – (void)setTitleTextAttributes:(NSDictionary *)attributes forState:(UIControlState)state // Set the text color or font of UIBarButtonItem [barButtonItemsetTitleTextAttributes:[NSDictionarydictionaryWithObjectsAndKeys: [UIColor redColor ], UITextAttributeTextColor,nil] forState:UIControlStateNormal];