ArchiveDecember 2014

Customise UIImageView with circular shape and borders ?

C

UIImageView *customImage = [[UIImageView alloc] initWithFrame:CGRectMake(10, 100, 50, 50)];
customImage.backgroundColor = [UIColor blackColor];
customImage.layer.cornerRadius = 25.0f;
customImage.layer.masksToBounds = YES;
[[customImage layer] setBorderWidth:3.0f];
[[customImage layer] setBorderColor:[UIColor whiteColor].CGColor];
[self.view addSubview:customImage];

Load UITableView images in background Asynchronously ?

L

UIImageView *SponsorLogo = [[UIImageView alloc] initWithFrame:CGRectMake(15, 90, 40, 40)]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^(void) { NSData *data0 = [NSData dataWithContentsOfURL:[NSURL URLWithString:@“your_image_URL_Here”]]; UIImage *image = [UIImage imageWithData:data0]; dispatch_sync(dispatch_get_main_queue(), ^(void) { SponsorLogo.image =...

How to define core location manager method in iOS 8?

H

Step 1: Add following key and value in Info. plist of your project. 1. Key – NSLocationWhenInUseUsageDescription Value- This will be used to obtain or track your location. 2. Key -NSLocationAlwaysUseUsageDescription value- This will be used to obtain or track your location. Step 2 : add following line where you want to declare or initialise core location . if ([locationManager...

Write signature on device screen

W

To write signature in app ….use this gesture code.   Write this gesture in xml: <android.gesture.GestureOverlayView android:id=”@+id/signaturePad”           android:layout_width=”match_parent”           android:layout_height=”0dp”           android:layout_weight=”5″           android:background=”#FFFFFF”         ...

JIT compiler in c#

J

In the .NET Framework, all the Microsoft .NET languages use a Common Language Runtime, which solves the problem of installing separate runtimes for each of the programming languages. When the Microsoft .NET Common Language Runtime is installed on a computer then it can run any language that is Microsoft .NET compatible. Before the Microsoft Intermediate Language (MSIL) can be executed, it must be...

Why Use PHP?

W

There are thousands of programming languages available and every year, new programs are being made.  But only few of these have become sufficiently popular and are used by many people.   One of which is PHP or hypertext preprocessor.  It is a general-purpose server-side scripting language designed for web development.  It is installed on more than 20 million web sites and 1 million web servers...

Category