Realm is really simple and powerful tool for developers to deal with local database. I highly recommend to use realm. Let’s go directly to the problem guys. Realm provides inverse relationship which is great to use. But you might get the issue while getting parent object using LinkingObjects class. Let me show you first how it is used. Person class Dog class So, what might … Continue reading Realm: LinkingObjects(fromType: Class.self, property: “property”) returns nil
Now a days you can see there are lots of iPhone and Android applications out there in play store and app store where you can download apps and games free and use it. This is really a great thing that we are able to use the great features free. This is the approach most of the developers and the company uses to make app free … Continue reading Does Google ad use your microphone and listen to you from iPhone and Android?
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?
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
If you want to save BezierPath in user defaults, here is the code you could find helpful. You might want to do this while creating drawing iOS application where you want to save bezier path for different layers or different images. Let me know if there is any confusion on this code. Thank you. Continue reading How to save UIBezierPath in UserDefaults in swift.