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
Sometime you might like to create an archive without using Xcode interface with just one command using a terminal. Well, if you are searching something like this, you are at right place. Open Terminal and type xcodebuild -scheme “Scheme Name” archive Once the archive is ready for you, you can check generated archive as usual within Organizer. You can find Organizer within Window menu. This … Continue reading How to create archive using terminal
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.
It is very important that you keep your apple id and password only with you otherwise here are the things that could happen to you. Lock your iPhone from anywhere. Change your iPhone passcode. Remove all datas from your iPhone. Access to all your emails. Send email to anyone from your apple id. Purchase apps, movies, series and songs using apple credit. Access all your notes. Access iCloud … Continue reading What happens when someone knows your apple id and password?
Now Netflix user can download movies and shows on their device to watch them later. Currently, all movies and shows are not downloadable. However, with time Netflix will increase the number. Right now, the ability to download videos on Netflix is only available on iOS and Android devices. Hopefully, it gets better by time. Thank you. 👍👍👍 Continue reading Now you can watch video offline in Netflix
Now you can turn on LED Flash for alerts on Silent mode too. Here is how you can do it. Goto Settings >> General >> LED Flash for Alerts Now turn on LED Flash for Alerts. Make sure Flash on Silent is turned on if you want flash light in silence mode. That’s … Continue reading Enable or Disable Flash Light in Silence Mode : New Feature in iOS 10
Spark is one of the best email app out there. It supports Gmail, Exchange, Yahoo, iCloud, Outlook and other IMAP providers. I am using spark for long time and I really love it. So, I would like to share it with you all. Here are features provided by spark app. Smart Inbox : This feature will help you separate email threads based on their type like … Continue reading Best email app for iOS.