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

Convert Hexacode to UIColor in objective c

To convert the hexacode to color we can create a category of UIColor and implement the following code - it will return the code corresponding to that hexacode Hexa code can be in following format 1- #RGB 2 -#ARGB 3- #RRGGBB 4- #AARRGG...

Pusht to new ViewController with top to bottom animation

Hi, Normally when we push to a ViewController it show the animation from left to right. But we can change this to animation from to top to bottom. here is the code to push a view controller from top to bottom. - (void)pushFromTop:(U...

How to make a view blur in iOS

If you want to make any UIView blur just like 'Notification' bar screen then here is a simple code to make it happen. This method will return a blur view and you can add that to your view as a sub view. -(UIVisualEffectView*)creat...

How to take screen shot of an iOS device

If you want to capture screen of an iOS device as you take the same from iPhone by pressing 'Power' button an 'Home' button then here is the code. It will take screen shot even if there is any transformation or transition running....

Record a sound in iOS

To record the sound in ios we can use the code below:- To record the sound first set the delegate of AVAudioRecorder in AudioRecorderViewController.h File like #import "AudioRecorderViewController.h" @interface AudioRecorderViewControl...

Blend Image in IOS

if you want add the custom frame on image like a border then 1- Add the GPU image Third party library to your project . 2- Use the image with imagename that you want to use as border image of originanl Image. 3- Framed image will the out...

How to get time intervals in hours between start time and end time in objective C

If we want to get the time intervals between the start time and end time then use the following code- it will return the array of hours according to the start time and end time. + (NSMutableArray *)getTimeIntervals:(NSString *)startTime a...

Change the Flash mode of camera in ios

To set the camera flash on or off in ios  Use the code below: -(void)setFlashMode:(AVCaptureFlashMode)flashMode forDevice:(AVCaptureDevice *)device { if ( device.hasFlash && [device isFlashModeSupported:flashMode] ) { ...

Image is Blurred after cropped from a view

if you are going to take a snapShot of  a view in ios and resultant image is blurred please change your code to following.   CGRect rect = [ScreenShotView bounds]; UIGraphicsBeginImageContext(rect.size); Please change thi...

Take the ScreenShot of View with Tabbar & NavigationBar

To Take the screen shot Of a view with navigation & tabbar You can use this code: -(UIImage *)getImageWithNavigationBarInIOS { CALayer *layer = [[UIApplication sharedApplication] keyWindow].layer; CGFloat scale = [UIScre...

Parsing JSON objects using Mantle framework in Objective C

Hi Readers, Mantle is latest and reliable framework which we can use while parsing JSON objects coming from server end. We can do this by simply initialize a class of type MTLModel. We can understand framework working with following example...

Fetching Latitude and Longitude On Basis Of Address

Hello Friends, In order to fetch the latitude and longitude of a location based on its address,you may use the following code:   double latitude = 0; double longitude = 0; Use the google api along with your address NSStr...

DIFFERENCE BETWEEN C , C++ AND OBJECTIVE-C

Below are some important difference between C , C++ AND OBJECTIVE-C C is a procedural language. C++ is procedural as well as object oriented programming language. Objective-C is a general-purpose, high-level, object-oriented programming lan...

Unwind segue in iOS

To Use Unwind Segues in iOS. 1- Create three controller using storyBoard 2- Push from FirstViewControleller to SecondViewController 3- Push From SecondViewController to Third Write a function in FirstViewController like this -(IBAction...

Crop Image in iOS

To crop image in iOS use the following method. it will crop the image from the visible frame of the imageView. -(UIImage *)imageFromImageView:(UIImageView *)imageView rectFrame:(CGRect)frame{ UIGraphicsBeginImageContextWithOptions(frame....
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: