
Search In
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
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
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
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
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
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();
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 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
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
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
