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

How to store user information in NSUserDefaults in swift language?

Hi Reader’s, This blog includes the concept of how to store user information in NSUserDefaults in swift language. Below is the code in swift language for the same:-   import UIKit import Foundation class RegisterViewCont...

5 Essential Tips for Developing Your First iOS App

Every company needs an app. If you’re the one responsible for making those apps, your work is already cut out for you. Making your first iOS app may seem intimidating, but going in with the right knowledge will provide you with some com...

Things to Remember Before Hiring Team for iOS App Development

  The present market scenario, every business firm wants to pump out maximum benefits, and this can be only possible if they deploy essential platforms like digital as well as mobile, to promote the respective products and services in...

Apple launches waterproof iPhone 7, iPhone 7 Plus with dual camera, AirPods & Apple Watch

In my iPhone 7 launch and rumour roundup  published 2 days back, I have compiled a series of  expected specs and features that were circulating around the globe. Glad to see, that majority of expectations that were included in the rumou...

How to add records into Firebase in iOS sdk?

Hi Readers, Many developers use third party SDK for saving records into the Database, Firebase provides us this functionality. To add records into Firebase, please follow these steps: First of all, you need to create a reference to Firebase...

Add camera node in sceneKit

  Adding Camera node  provide us the point of view from which we view our scene. To add camera node we have to simply make the SCNCamera object and assign it to node’s camera property.       let ...

How to Display banner ads for DFP users in ObjectiveC

This blog includes how to display banner ads for DFP users.For this first user need to signed up as a DFP (Double click for publisher) and then install cocoa pods for Google mobile ads. pod 'Google-Mobile-Ads-SDK'   We can also in...

What is FireBase?

Firebase is a Google product for the mobile platform that helps us developing High-quality apps quickly, it also helps us to create our own userbase & earn more money. Google's FireBase  provides us cloud & back-end services. Fir...

What is FireBase?

Firebase came after Parse failed in 2016, initially, Parse gave the leaders in the “mobile backend as a service” MBaaS space. It gave app developers a hosted alternative to building a custom backend from scratch fo...

Generate random number without repetition in ObjectveC

This blog includes generating the random number without repetition of number in specific range. For this we need to take a array to store the generated number so that we can keep track that the number is already generated or not. Here is th...

“No Selection” in interface builder

With Xcode4.0 and onward(including XCode7.x) we occasionally come across an issue in interface builder which happens while working. The Attribute inspector in Interface builder says “No Selection” although you’ve object/ele...

Update location in background after specific interval of time in objecticeC

This blog includes updation of location while your app is in background mode. Sometimes we need to fetch the user location while the app is in a background. To achieve this first we need to use the location manager.   Here is the code ...

Creating SubDirectory using XCAssets

Sometimes we need to be more generic about naming convention of images. We may need same name of assets(images) for various views. Xcode doesn’t allow us to keep the files with same name and can throw error or change the asset name by it...

How to change voice using AVSpeechSynthesis in swift

This blog includes the use of - AVSpeechSynthesisVoice  If we want to change the default voice i.e system voice then we need to use speechVoices{} array which contains the name of persons and locations. iOS has a nice method for sett...

Check if new version of app is present in appstore programmatically.

Many apps these days show an alert on app's launch saying a new update is present at the store. To implement this feature first we need to find version of the app available on app store and version of the current running app and then compa...

How to get the image size after aspect fit in objectiveC

When we set the aspect fit property of image view then the size of image get reduced because it sets the image according to the aspect ratio.  So if we want to get the size after aspect fit the use the following code- In the following cod...

How to animate view zoom and bounce like popup in objectiveC

This blog includes zoom and bouncing In animation on view. If we want to present view like popUp alert then it include two animation- first is zoom and second is bouncing.These two animation can be achieved by affinity transform.Scaling, rotat...

Clear view or image with touch in iOS

Hi Readers, Paint related apps are usually used to clear content what have been drawn. One can achieve it by using Core Graphics framework provided by iOS. With touch delegate methods will be called so following code snippet will give prope...

How to fadeIn the selected cell of uicollection view in objective C

If we want to fadeIn the selected cell of collection view then use the following code- Sometimes we need to show the selected cell . For example - If we have list of songs and we want to display which song is currrently playing then FadeIn met...

How to run multiple instances of simulator in iOS

We can easily run multiple instances of simulator using terminal commands. But they have be different devices like iPhone 6s, iPhone 6s Plus, iPhone 6 etc, i.e. we cannot have two simulators of iPhone 6 simultaneously. Also we can't use xcode...

Play video within given frame or in UICollectionViewCell/UITableViewCell

Hi Readers, Usually we have scenarios for playing videos within the app. MPMoviePlayerController will be used for that. But you can see MPMoviePlayerController deprecated in iOS 9 and later. So we need to put our focus on AVPlayer now. With AV...

How to crop the video from URL in objective-C

If we record the video from our app and need to crop that video in the square shape on any other specific frame then use the following code- In this code, we need the URL of the video that can be local URL because when we record any video it i...

How to create custom library in iOS?

Hi Reader’s,   This blog includes the concept of how to create custom library with the help of AssestsLibrary framework. Custom library is useful for multiple images selection at one time so given below is the screenshot of story...

How to set random numbers from an array as title of UIButton in iOS?

  Hi Reader’s,   This blog includes the concept of how to set random numbers from an array as title of different UIButton taken in story board. Random numbers are much needed if you are making a number based gaming applic...

Bottom pull to refesh for pagination in table view in Swift

Hi Readers, Pagination is required in most of our apps in today scenario. We can achieve it either pull to refresh from top or bottom. UIRefreshControl is the feature if you want to implement it from top side and insert processed records into ...

How to parse JSON in Swift with ObjectMapper

Hi Readers, Every app needs to parse JSON data coming from server and ObjectMapper is a powerful tool to achieve that. It can be easily done with provided pod which can be install by adding following line into podfile:  pod 'ObjectMa...

Blocks or closures in Swift

Hi Readers, We used to code blocks in Objective C, mainly to implement callbacks. For that particular functionality we can use closures in Swift. That will work same as blocks in Objective C. Closures are enclosed in curly braces { } and are d...

How to play music in the background using AVAudioplayer

Hi Readers, Many times we need to play music even app is in background. It is normal behavior of AVAudioPlayer to play sound when app is in foreground or active state. But to play sound, music or song even in background state can be achieved b...

How to drag and drop UICollectionView cell item to another UIView in iOS?

  Hi Reader’s, This blog includes the concept of how to drag and drop UICollectionView cell item to another UIView with the help of long press gesture. First of all given below is the snapshot of storyboard in which collection ...

Customizing search bar in iOS SDK

Hi Readers, Customizing search bar can be easily done with UISearchBar. All you need to check view hierarchy of search bar subviews for that as with latest iOS SDK hierarchy can get changed. Customizing can be done by changing these views colo...

How to download videos from YouTube in iOS

Hi Readers, We can download video file from Youtube if we know youtube URL of the video. First you need to add attached files (HCYoutubeParser) into your project. Now you need to call following function into your code: let video = HCYout...

How to download data Using NSOperations and NSOperationQueue

Hi Readers, It is sometimes required to download files or images from server into local. We can perform these tasks by NSOperation and NSOperationQueue efficiently. The basic idea is to create each download operation separately and add these o...

How to decode HTML string coming from server to iOS readable string

Hi Readers, Many time we will get HTML content in our API response which we need to load into our component like UILabel.  We can convert this HTML content into normal string or more specifically NSAttributed string which we can set into ...

How to perform task in background thread using GCD

Hi Readers, GCD stands for Grand Central Dispatch. It can be used to handle background task. In app requirement many time we need to perform some tasks like calculation etc without any effect on main thread. So all we need is to perform that p...

Crash on camera open in iOS 10

Hi, If you app getting crash on opening camera in iOS 10, then you have to do some changes in your info.plist. To avoid the crash we need to add the suggested key to ‘Info.plist’ (Xcode 8 already contains the full list of possib...

How to implement autolayout programatically in iOS?

  Hi Reader’s, This blog includes the concept of implementing autolayout programatically. This can be done in two ways:- 1.NSLayoutConstraint Class 2.VisualFormat   Below is an example which includes a UITextField ...

Make a simple paint application in iOS

We all have seen a paint application in our PCs or laptops. So, here we are going to build a simple application which uses different colors to draw on the screen :-   Lets start with making the UI. Drag an UIImageView and UIView in the...

How to check metadata of an audio file in iOS

Hi Readers, The below code snippet will give you the meta data of an audio file. You need to add an audio file in Resource Folder. Once that is done use the below code. Let us also understand the code.   - (void)viewDidLoad { ...

How to have transparent view controller in iOS?

At times we might need to have a transparent view controller i.e to have contents of presenting view controller visible along with the presented view controller. One of such cases can be when we have to show some popup with bl...

How to show gif Images in iOS using FLAnimatedImageView

We can easily display jpg images in the UIImageView. We can also display .gif images which supports animations so there is need to add some extra elements to our project. So for implementing this first install this podFile to your project :-...

How to use MaterialDesignIconicFont in iOS

With the help of MaterialDesignIconicFont we can use icons as texts and set them on label or title of buttons etc. To include the font first download the attached Material-Design-Iconic-Font.ttf file at the bottom of this blog. ...

How to blur UIView in iOS?

Hi Reader's,   This blog includes the code which is used to blur UIView in iOS in a very simple way. This code can be used according to the need of the user to blur the UIView. Code is given below which includes how to blur UIView ...

Crop UIImage in iOS

Hello all ! To crop an UIImage in iOS the following code can be used :-   - (void)viewDidLoad { [super viewDidLoad]; [_originalImage setImage:[UIImage imageNamed:@"Scenery.jpg"]]; CGRect rect = CGRectMake(...

How to use tabbarcontroller and transfer data from one controller to another in iOS?

Hi Reader's, This blog includes the concept of TabBarController and how you can transfer data from one controller to another. TabBarController is use to manage different content view controller which you provides according to your need. He...

How to save and fetch data from Sqlite database

First include the sqlite file in your project. Then copy that file from bundle to documents directory as below and create Database method. -(void)createDatabase{ NSString *pathForDocumentDirectory =[self databasePath]; //define new path...

How to store image in cache in iOS?

Hi Readers, This blog includes the concept of how to store image data in a cache memory with the help of SDWebImageManager. First of all, we need to install pods in the application to use SDWebImageManager, after creation of pod file you need ...

NSPredicate in iOS

NSPredicate is a query language. It provides a natural language interface to define logical conditions. While working with large data sets, sometimes it is essential to filter the data. So, the filtering and sorting of data can be done with NSPre...

How to show animation with objects

Animation On x and y axis. If we want to show some moving object on X or Y axis then we can use following code. Here we have taken one view and give some colour to it. CABasicAnimation *animation = [CABasicAnimation animation]; anim...

How to save and fetch image data from documents directory in iOS

Hi Reader’s,   This blog includes the concept of how to store and fetch data from document directory. You can easily understand the concept with the help of code given below:-   ​ ViewController.h #import &...

Universal link in ios 9

Universal link in iOS9 is similar to Deep linking in that on tapping a link on a website the app is launched. But in universal link the app is opened directly without going through safari. It also works with the apps which make call to openURL: f...
prev 1 3 12
Sign In
                           OR                           
                           OR                           
Register
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: