Singleton design pattern is the go-to pattern when one requires to manage a single state accross the board. In Swift initializing a singleton is very easy. In this post I want to talk about some concepts the documentation doesn't explicitly describe. As you saw in the documentation in Swift, you typically implement a singleton using a static constant to store ...
The documentation is prety extensive and when followed you can successfully get it running in both your simulator and device. However, you are in for two surprises!!! 1st Surprise Documentation doesn't tell you about their branching strategy. If you are like me and would always keep your 'master' branch stable and in a releasable state, you are in for ...
This post is an extension of the conceptual explanation found on the same at P2Feed. They also felt that documentation provided by Google was not comprehensive enough. There are number of libraries/starter projects developed by other developers for the same but if you are interested in whats happening under the hood and want to have full control of your ...
Setting an attributed string to an UITextView can be pretty straight forward. See code sample below, yourTextView.attributedText = Your attributed string However, I noticed that the scroll position of the UITextView changes upon executing the above line of code. The solution is to disable scrolling before setting the text. The code below worked for me, yourTextView.isScrollEnabled = false yourTextView.attributedText = ...
Follow the 7 easy steps below to select text in Safari using voice over. 1. Listen to voice over reading the text you want to select (navigate the website the usual way). Voice over might read more than what you actually want. You'll be ok as long as the text you want to select is included. 2. Use the rotor ...
Lately, I was trying out pre-request scripts on Postman. We all know as the script gets larger and larger it would be handy to have place to print out the values as you debug. This is how you could achieve that on postman. 1. Open Postman and go to View -> Show postman console. 2. That's it!!!
Location: It is close to the Ella railway station and three attractions in the area (if you are up for hiking). They are the Nine Arch Bridge, Mini Adams Peak, and Ella Rock. Food: We only asked for breakfast. We were there for two days. Both days we got bread. Earliest you can get breakfast is 8.00 a.m. However, we ...
Making you app to understand voice command was not an easy task before the introduction of Siri (iOS) and Google assistant. Both are now opened for developers. However, as usual Apple's Siri is not fully open to the developers when compared to the capabilities of "Google Assistant". Siri is said to be limited to the following domains. - VoIP calling ...
Image 01 This is an inbuilt feature of the Xcode server, therefore additional configuration is not required. Once you have successfully setup the server, open the server dashboard (image 01) and click on the bot. Then use the 'product' button in the pop up (image 02) to download the ipa. Image 02
Following is how I implemented "remember me" feature in a recent app I did in swift. I'm saving the user details in NSUserDefaults upon requesting to remember.
With Xcode 4 came the concept of a workspace that allows multiple projects to be grouped together. Each workspace gets a unique set of symbol indexes, build products, window layouts, etc., otherwise referred to by Xcode as derived data. Since a single project can belong to more than one workspace this derived data is not contained under the individual project ...
I have been using Mantle for JSON serialisation for quite some time now. I loved it because it appeared to be a clean way to handle JSON objects. However somethings have changed in version 2.0. This is not an attempt to criticise the changes but an attempt to give a heads up before you update. Value transformers have changed. Old ...
There are number of services available online for this task. Most of them are free too. But did you know that you can do the same with your Safari browser? I recommend it to be more safe on the privacy side as no third party will see the content you make PDFs out of.
Gone are the days where Xcode generated the manifest for you when you archive for enterprise distribution. So it is more or less a manual process now and below is a sample manifest. Just Create a .plist file (can use Xcode for this) using the following keys and values appropriately. <plist version="1.0"> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> ...
I know its bit late but anyways... The symposium was held on 2nd of January 2015 at University of Moratuwa, Sri Lanka. Academics and industry experts participated the event from Universities like University of Colombo and Sri Lanka Institute of Information Technology (SLIIT). The keynote speech was given by Prof. Rohini Paranavitana (emeritus professor, department of Sinhala university of Colombo). ...
In this post I’ll be covering few important things I think you should know if you decide to test apps made for iPhone/iPod in an iPad. You can't replicate application interruptions (such as a phone call or SMS text) as easily. To test iPhone app on iPad it must be iPhone-only app. Then you will be able to use ...
be grateful to your competitor annoying colleague abusive person lost opportunities all hardships makes you strong develops patience improves skills you are privileged be grateful
Just finished watching WWDC 2014 and thought I might have slightly different opinion than of Tim regarding Apple’s success. Tim boasts about user base of both iOS 7 and Mavericks comparing Android and Windows 8. Can a user base only be an indicator of its success? One good reason for most Apple users to be using the latest version could ...
Today when I typed in mail.yahoo.com in my browser (that’s what I normally type to log in to my mail) it took me yahoo.com. I’m started to think that they are quite serious about marketing other than identifying it as a bug. It is not the only change I saw so far. I have listed some interesting changes they have ...