Posts

Android from iOS Guy's Perspective

Image
I got a chance to learn Android Development through this course on Udemy , which is very good for freshers or even noobs like me or the one with literally no experience Programming at all. I have just completed it ( Believe me: I have listened and followed all the videos and have experimented all those fundamental/basic codes ;) ) and wanted to share my experience with this MOOC. I believe that MOOC will vanish the standard academic learning in the coming days. Since, i have been doing only iOS apps for a very long time, being basically an iOS dev, the perspective of this post comes from that point of view. So, here goes my thoughts on the Android Eco system at first: I haven't really been an avid Android user, since i haven't owned a phone yet, but i would have to admit that it really was a wonderful experience throughout the course learning and knowing about the  Eco system itself. Before going into the course, i would like to thank the Udemy team and...

iOS9 Features

Adding it lately, but still feel like doing it. Here's the rough overview/summary of what has been added into iOS9: An All New App Switcher (From left to right. Placed like a deck of cards). Contact guesses from Mail in Call Screen. Bottom scroll to navigate quickly through Photos. Contact thumbnails in Messages. Notifications view by Recent. New screen for Spotlight with Siri Suggestions and Contacts search. Plugging in the earbuds would bring up the Music controls on the Lock screen. Accessing the iCloud Drive app. Low Power Mode. Automatically organise Selfies, Screenshots in Photos app. New San Francisco Font. Shift Key (To differentiate b/w Caps/Lower cases). Back button on status bar to go back to the previous app. Notes (Sheet/popup) option from Share sheet. Search in Settings. Public transit in maps. Hands off. 6-Digits Passcode. 1.3GB OS (As oppose to 4.58GB iOS8.0) Xcode7 allows to install app on device w/o paying/subscribing for Apple’s Dev...

Free Hand Drawing on Google's Map View

Recently, I got a chance to work on a project, where we needed to provide an ability to users of an iOS app to draw on Maps. Basically, we decided to go with Google Maps, because of its overall coverage and its popularity. Hence, we used  Google Maps SDK for iOS  and we wanted to implement "Free Hand Drawing on the Google Maps". To do so, I started searching around the internet for some good resources, but weren't able to find any good one that could just be used like Plug and Play. We had to do a lot of handling on our own and hence decided to write a blog post and a sample project just to make it useful for others, so that others in the same path don't struggle much like me. If you are only planning to draw a Polygon on the Map (As most of them do), then may be you don't have to read the entire post. Instead just follow these steps: (i) Copy & Paste these Folders into your project: "SARMapDrawView", "Categories" & "Models...

Optionals in SWIFT

In SWIFT, an interesting and a powerful feature that i liked mostly is "Optionals" . Can you imagine, how many times you have checked a variable in Objective-C for its Validness, (If it is nil or not) ? How many times do you think, you might have written the below code in Objective-C: NSString *string = someFun() if (string != nil){ //do some stuff with the returned string here } I can’t even count on this, since i do this often throughout my classes. Apple have done a great job to solve this issue with Optional variables. Let’s look into this feature more deeper with an example to understand its use and purpose. Consider, you have an array of strings of Phone Numbers as below: let numbers = [“9876543219”, “9898878890”, “9876556789”] We’ll write a simple function to see if we can find a phone number within the array.     func findNumber (number: String , numbers: [ String ]) -> String {     ...