Hello guys, Let me tell you something regarding overriding which might be helpful to you guys. Basically, override is used within derive class where you want to use parent class’s method. While doing so, you migt want to eiter completely override parent class methods or partially override it. So, what is completely and partially? Ok let me explain with some example. Completely override: You can … Continue reading Complete and Partial Override Implementation in Swift.
As an iOS developer you might have used lots of technique while dealing with issues on apps. There are many debugging tools and techniques that you can use. But today I am trying to show you one technique which helped me a lot to debug my code. I think this will be helpful to you as well. Today, I am going to talk about breakpoints. … Continue reading Debugging technique for swift programming language using xCode.
As a developer, you might sometime want to have a method which will let you know if the user has changed the system time or not. This method will be very easy for developers to check if the user is trying to mess up with time and try to do something. For example trying to change time in Candy Crush game in order to stop … Continue reading Why apple didn’t provided isTimeZoneAutomatic() method?
You can record iPhone screen using QuickTime Player. But sometimes you might forget to uncheck microphone and start recording iPhone. Later you recognized that you have recorded audio as well. Guys, it is impossible to remove audio once the video is recorded using QuickTime Player. But I do have one solution to this. You might have heard about Automator in Mac. This app is great … Continue reading Remove audio track in QuickTime?
Hello guys. Today I am going to tell you how to detect if the device is locked or not from today extension or some people call it widget. Apple has not provided direct solution to this but there is a way to find if the device is locked or not. After doing search for sometime, I found out a solution for this. The approach is … Continue reading How to determine if iPhone is locked or not in Today Extension (Widget)?
This my experience regarding using Eddystone beacon. I purchased eddystone beacon from ebay and tried to integrate with my iOS application. I used this beacon to identify certain location. For example, I wanted to know if the user actually did visited certain location with the help of the mobile application. And to do so, I required some hardware to connect and the app would know … Continue reading Using Eddystone beacon in iOS swift. How is the experience?
I created this post when I got and issue on trying to clear UserDefault values. Here is my problem scenario. Trying to save if user is logged in or not in user defaults. I used a code to save user login status with following code UserDefaults(suiteName: “group.santosh.loginApp”)?.setValue(true, forKey: “group.santosh.logginStatus”) It successfully stored the value. Here is a code to clear all user defaults values. UserDefaults().removePersistentDomain(forName:”group.santosh.loginApp”) … Continue reading UserDefaults not clearing datas immediately using suite name: App Group
At time when you are wokring in today extension you will face this issue where self.extensionContext.open doesn’t work or let’s say self.extensionContext is nil from presented view controller. Initially I was testing if my code regarding opening app code was wrong. And then I tried to do it from initial view controller. It worked. And I was so much thinking what went wrong. I though … Continue reading extensionContext is nil from a presented view controller
Are you looking for library which simply embeds UITextField from your own design done in storyboard? Well, then you are right place. Just download this repo and you will get an example of how to use it. It is very simple and clean to understand and you can even add more to it. Getting Started Create UIView in storyboard. Assign SMPinView to it. Now add textfields … Continue reading SMS pin code UIView for Storyboard on Xcode
Sometimes, you want to share your code with the world but don’t want them to access your code. Well, if you are thinking the same, this article is for you. We can create an iOS universal binary framework using swift and share framework file. This might be helpful if you are working somewhere where generating framework is important. Let’s dive into it. Before starting you … Continue reading How to create a binary iOS framework in swift