How to send push notifications on the iOS simulator?

Push notifications are the best way to fascinate the audience towards your iOS app. It’s like an alarm to convey your message to your user. Push notifications in ios are handled and authorized by APNs( Apple Push notification services).  In any organization, there may be hundreds or thousands of developers and testers, sometimes organizations could not afford to give iOS devices for each and every developer or tester. But iOS push notifications can only be sent on devices. Don’t worry bro, In iOS 13 / Xcode 11.4 Apple introduced some new features which are very beneficial for the user’s and …

Read moreHow to send push notifications on the iOS simulator?

SwiftUI vs UIKit

At the 2019 WWDC Apple introduced a new UI framework called SwiftUI. From the initial phase of iOS development, we are looking at Xibs and storyboards to build a user interface in ios, macOS and WatchOS app, many more developers were fed-up from developing UI by Storyboard, maybe you are one of them, there are a lot of drawbacks of UIkit over SwiftUI. Yeah….  but the SwiftUI also has one major drawback, Apps created in SwiftUI only support iOS 13 and the next version, and SwiftUI don’t allow us to debug hierarchy of views. For now, SwiftUI requires the following …

Read moreSwiftUI vs UIKit

Lifecycle of UIViewController in Swift / Objective c.

UIViewController is the collection of multiple Views. The view controller manages subview layouts, sizing, interface orientations, and functional implementation. It handles instantiated classes from itself like TableviewController, CollectionViewcontroller, TableViewControllert, UISplitViewControlleretc. It also managing content and handles user interaction events. We can create UIViewController views using three different ways Programmatically, Storyboard, and  Xib’s. The view controller class is the object of UIResponder class and it corresponds to the UIResponder chain. ViewController has a lifecycle for managing view contents, the relationship between subviews, sizing, positioning, Navigation operation between view controllers. UIviewcontroller Lifecycle is performed through following predefined standard functions. 1) ViewDidLoad( ) …

Read moreLifecycle of UIViewController in Swift / Objective c.

Before you start to build an iOS App.

If you want to develop a quality iOS App. Don’t go and start writing code directly. If you think without design, plan, estimation, You can produce the quality application. You are thinking wrong . You will lose your tonnes of valuable time. So before start writing iOS application follow the steps mentioned below. 1) Understand requirements and define the scope of application.     Raise your points during requirements gathering. Ask each and everything that you observed during the functionality and design level negotiation. Note down all crucial and functional points. Verify App device platform iOS/iPad/TV-OS/I-Watch. Another thing is to confirm …

Read moreBefore you start to build an iOS App.

Apple deprecated usage of UDID. What is next? Alternatives of UDID.

  As we know apple deprecated using and accessing the user’s device unique identifier (UDID). Many iOS Apps rejected that are using UDID for tracking user information and misusing this information for the sake of Advertise management and User usage management etc. Deprecation of accessing user device unique identifier preventing strikes on user privacy.Is there any replacement for UDID? – Yes Step 1: SwiftKeychainWrapper – SwiftKeychainWrapper is working similar to NSUserDefault. The difference between both of them is NSUserDefault store lightweight data at App level, Means once you uninstall App from device  NSUserDefault data is being deleted. But in the …

Read moreApple deprecated usage of UDID. What is next? Alternatives of UDID.

How to use MBProgressHUD Progress in Swift?.

MBProgressHUD is a prevalent and well designed circular activity indicator library for developing iPhone and I-pad Applications. It’s a very flexible and well functioned ProgressView library. Its simple general library could integrate by new developers. It is not that hard enough. It does not need to install Cocoa Pods, you can directly drag and drop class files in your project. MBProgressHUD requires on iOS 6+ and requires ARC. And depending on the following core frameworks. Foundation framework, UIKit.the framework, CoreGraphics.framework. Install MBProgressHUD to your project using CocoaPods Add pod in profile pod ‘MBProgressHUD‘. And then Install Pod by ‘pod install’. …

Read moreHow to use MBProgressHUD Progress in Swift?.

Store image in NSUserDefaults and Retrieve it.

 What are NSUserDefaults?.   NSUserDefault is a lightweight storage section where the user can save their persistent data. NSUserDefault Storing the data in the form of key and value pairs. NSUserDefault is very easy, You don’t need to fetch any queries, path, and files.we can access it in a single line of code. NSUserDefault, not temporary data storage. its persistent data storage you can access data after the reboot of the cell phone itself. Here an example of storing the image in NSUserDefault. Storing image into NSUserDefault: Convert Image into NsData,store NSData into an NSUserDefault.Code: Retrieving image from NSUserDefault: Get …

Read moreStore image in NSUserDefaults and Retrieve it.

How to add an image from gallery and camera in IOS Objective C

Adding images from cell phones is a very important task in Mobile Application development. Social media, Bussiness applications, Real estate applications, Lifestyle applications, E-commerce applications. We would require getting images from users where we are using “UIImagePickerControllerDelegate” Delegates. UIImagePickerControllerDelegate has a set of functions by using this delegate objects are able to interact with image picker interface. It inherits from NSObjectProtocol. For getting additional information about the picked object it may be image or video, UIImagePickerControllerDelegate has provided some predefined keys for a delegate object to know what exactly returned. Like ImagePickerControllerMediaType to specify that type of media returned from …

Read moreHow to add an image from gallery and camera in IOS Objective C

How to use Alamofire for calling Web Services/API’s in SWIFT

Features of Alamofire: Alamofire is a swift open source library for implementing web services in IOS and Mac Os. Handling HTTP request-response by serially and concurrently way. We can easily request for the POST and GET method and managing request-response independently. It also performs some Basic functionality like uploading and downloading the file from the server. You can install POD as well or can push files into the project and implement it. It’s a Developer friendly library. Fully developed in SWIFT. Alamofire delivers some additional features of serial request/response function. Parameter encoding is available with URL / JSON / Plist. …

Read moreHow to use Alamofire for calling Web Services/API’s in SWIFT

Five Simple steps installing COCOA POD Library

Advantages of installing Cocoa Pods over installing the library manually. Sometimes, it’s laborious to induce a particular version of a library. There’s no central place wherever you’ll be able to see that library. Updating library is very difficult.No need to copy and paste, Avoid chances of missing files and resources. Cocoa Pods dependency managed centrally while in Carthage dependency managed by decentralizing methodology. Cocoa Pods is easy to use and handle. Cocoa Pods creates .xcworkspace file in which all your Pod files are bind together while Carthage uses Xcode builds to build dependencies. To install CocoaPods in your machine, you …

Read moreFive Simple steps installing COCOA POD Library