Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Search In

Enum with a main method in java

Enum In java In java we use of enum is not confined to declaring set of constants , introduced in J2SE 5.0, is useful when you want a variable to hold only a predetermined set of values. Just like a class, an enum can have constructors, methods

arranging the images at the center of the iPhone screen

It might be required to display a large number of images having different sizes, one by one on the screen. To make it look neat, all the images should be aligned at the center of the screen, irrespective of their size. So fixing the coordinates of th

How to stop scrolling of a scrolling UITableview programmatically

When we are having multiple tableviews with a common datasource we must make sure that only one table view is being reloaded at a time. We cannot load data on one table while other is scrolling as it would invoke datasource methods for the scrolling

Get iPhone contacts for any label in Objective C

Sometimes we do not get other label's contact number from the iPhone device. We only get "Mobile" labelled number or "iPhone" labelled number. Here is the code to get all type of labels contacts from an iPhone device. Inside the loop where we have g

Compile your code even when application is in background

When application enters in background the compiler stop working and it has to wait till application enter foreground. Use following code to compile some of your code even when application is in background bgTask = [application beginBackgroundTaskWi

Crop an image from UIImageView

With the following method stated below you can crop an UIImageView. -(UIImage *)cropedImage:(UIView *)view{ UIGraphicsBeginImageContextWithOptions(view.frame.size, imageView.opaque, 4.0); CGContextRef c = UIGraphicsGetCurrentContext();

resize UIImage without losing quality (not screenshot)

Use the below code for cutting UIImage in high quality without blur (not screenshot) tmp is image view <p>UIGraphicsBeginImageContextWithOptions(tmp.frame.size,YES, 4.0);</p> <p>CGContextRef c = UIGraphicsGetCurrentContext();<

If you want to remove index.php from url in Codeignitor

If you want to remove index.php file path form url in codeignitor then please follow below steps create .htaccess file in your root folder and place this code there RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{RE

Foundation-5 Cheat sheet

Hello Friends, In the era of new HTML Concepts or platforms like- Bootstrap, Foundation. We are using these platform to make our HTML more elegant and in a responsive Form. Today I am adding something for Foundation CSS platform. Lets have a l

How to underline label text of UIButton?

Underlining title text of UIButton can be done with attributed string using following code (In this case yourTitleLabelText is title text for button and yourButtonObject is button object): NSMutableAttributedString *titleString = [[NSMutableAttribut

1 532 596
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: