Featured
-
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi -
Make UIImage White Background Transparent in iOS
If you came across to a requirement where you want
by ashish.nakoti -
User's location update on server when app is in background.
Code for those Apps where we need to update user's
by ashish.nakoti -
Animate button with zoom and bounce effect in ios
Many social apps are using bouncing effect for but
by ashish.nakoti -
Crop an image from UIImageView
With the following method stated below you can cro
by kuldeep.butola
Tags
Pass data from one ViewController to another in iOS
I’ve just created second view controller class by extending from the UIViewController class. However, it doesn’t differ from the parent class until we add our own variables and methods. There are a couple of things we have to change:
...
How to disable user interaction of an iOS app
In iOS application there are only few ways to disable user interaction for the whole screen or UI. Some developers use property (User Interaction Enabled) for a specific control, some uses MBProgressHud class by displaying spinner or some uses us...
How to get iOS device type and version
If you need login device type, model and version of an iOS device, then use below code.
You'll have to import below file first then:-
// #import `<`sys/utsname.h>
NSString* deviceName()
{
struct utsname systemInfo;
uname...
Trim whitespace from a NSString in ios
If you want to trim occurrence of whitespace character from both ends of a NSString. Use below code to do it:-
NSString *newString = [yourString stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceCharacterSet]]...
UIImage Cropping in Objc
Some times we click picture from ios camera but it does not return us the same image as appears inside the camera frame. Use below function to get an image of exact size which was visible through camera.
Follow these Steps:-
Step 1. First o...
Change color of an UIImage in ios
You can pass array of colors in this function in order to change any color of an UIImage. Just pass UIColor and UIImage to this function.
+(UIImage *)changeColorTo:(NSMutableArray*) array Transparent: (UIImage *)image
{
CGImageRef rawIma...
Change UIIMage background color in iOS
Here is a function which returns an image with different background of you choice.
- (UIImage* )setBackgroundImageByColor:(UIColor *)backgroundColor withFrame:(CGRect )rect{
// tcv - temporary colored view
UIView *tcv = [[UIView alloc] ini...