<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Narayan Acharya on Medium]]></title>
        <description><![CDATA[Stories by Narayan Acharya on Medium]]></description>
        <link>https://medium.com/@narayan.acharya?source=rss-a737949cead1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_oIPSSe7kKdlKd76.jpg</url>
            <title>Stories by Narayan Acharya on Medium</title>
            <link>https://medium.com/@narayan.acharya?source=rss-a737949cead1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:29:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@narayan.acharya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Android to iOS under 4 weeks?!]]></title>
            <link>https://medium.com/@narayan.acharya/from-android-to-ios-under-4-weeks-2e3c1eeef871?source=rss-a737949cead1------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3c1eeef871</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Narayan Acharya]]></dc:creator>
            <pubDate>Fri, 21 Apr 2017 14:31:02 GMT</pubDate>
            <atom:updated>2017-04-21T14:31:02.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fiFFQTSYOXes39rrRlX0nA.jpeg" /><figcaption>Source — <a href="https://unsplash.com/search/mac?photo=y0_vFxOHayg">https://unsplash.com/search/mac?photo=y0_vFxOHayg</a></figcaption></figure><p>So I was working with an amazing bunch of people last month. The team at <a href="http://applab.tech/">Applab</a> (they are currently rebranding to Kustard) is simply phenomenal. The feeling is simply outstanding when you work with people who believe in the same fundamentals and core principles as you do.</p><p>Getting back to our topic, the task at hand for me was to deliver a production ready iOS app within 4 weeks. Nothing new, right? Catch is, I had no prior experience with the iOS ecosystem nor had any prior knowledge of either Objective-C or Swift! I had never owned an iPhone or used one extensively for that matter!</p><h3><strong>Some background about me!</strong></h3><p>It isn’t like I am completely new to such stuff. I have been an Android developer for quite some time now, with a few apps under my belt. So I had the basic concepts covered when it came to developing for mobile platforms.</p><h3><strong>Pre-requisites?!</strong></h3><p>First of all you need a Mac to start with development. I mean you can do VMs and stuff and have MacOS up and running on another machine. I would not recommend that. If you are seriously in it to win it get yourself a Mac. I bought a second hand Mac Mini(You will need a monitor too if you don’t have one). Buying a Mac Mini is a decision I do not regret!</p><p>After that you will need <a href="https://developer.apple.com/xcode/">XCode</a>. XCode is the IDE you will be working on. It is fast and snappy, at least on my machine. I do not remember one instance where it just bailed on me or would not respond or took an hour to build my project. I am looking at you Android Studio! (Side note: Actually Android Studio has improved quite a lot in its recent versions, but unfortunately I have seen the ugly, so…)</p><p>Also, you can test what you build on an emulator. The emulator is seriously way better if you come from Android background and have had an unpleasant experience with emulators. It feels faster and more responsive if you compare that to Android emulators. But I would recommend getting a real device for testing purposes. At least have friends with various sizes of iPhones from the 5S to the 7 and 7+. Well, that is what friends are for, right? :P . It is good to have your work checked on real devices and make sure they play well under different circumstances from time to time.</p><h3><strong>Where did I start from?</strong></h3><p>One resource that probably everyone uses is this playlist on YouTube by Stanford Professor, <strong>Paul Hegarty</strong>, <a href="https://goo.gl/s0pXz">https://goo.gl/s0pXz</a>x. I am yet to find something that is more thoughtfully structured and concise for beginners. By completing the series I got idea about various parts of the iOS framework. If not completely, I had at least had a gist of what goes where, what works with what and how to approach a certain task.</p><p>Truth be told, I actually did skip a couple of videos, like the ones on Animations and MapKit. I did so because they were not required for the current project I was working on and time was an important resource. I was working with a fast approaching deadline and did not want to spend time on things I would not be using in this project. It took me around 6–7 days, to complete the videos that I needed to.</p><p>One important thing to note here is that I did not simply lay back and watch the videos with popcorn and soda by my side! It was watch and implement and tinker and learn that went through each relevant section of the video.</p><blockquote>Watch and Implement and Tinker and Learn!</blockquote><p>One video that definitely stands out for me in the entire series is the one where you build a Calculator. The way Professor explains the MVC framework and all that Swift optimisations and all that clean code is simply bliss! A simple calculator architected in a simply magnificent way!</p><h3><strong>Other Resources</strong></h3><p>Apart from the <strong>Stanford iOS</strong> YouTube channel these resources were quite helpful when you are new to the ecosystem. I wish to save myself the effort and hope you check out this <a href="https://medium.com/app-coder-io/27-places-to-learn-ios-development-best-ones-b1bcfb48efab">link</a>. It is a comprehensive list of tutorials for beginners. I haven’t seen all of them but a good bunch of them.</p><p>But I would like to give special mention for one particular resource that I liked a lot. <strong>Ray Wenderlich</strong> is a name that will pop up a lot in your Google searches when you are beginning with iOS and Swift. You should definitely check his <a href="https://www.raywenderlich.com/">website</a> out! Check out these links if you want to get to the important stuff quickly — <a href="https://www.raywenderlich.com/category/swift">Swift</a> and <a href="https://www.raywenderlich.com/category/ios">iOS</a>.</p><p>Two others that no developer can ignore are <a href="http://stackoverflow.com/">StackOverflow</a> and <a href="http://github.com/">Github</a>. I don’t know what I would have done if not for these two websites. They have my back every time I get stuck!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6sCLn93yPNUkBp-F-IBOg.jpeg" /><figcaption>Android and iOS have quite a few things you can relate to each other.</figcaption></figure><h3><strong>Coming from Android? Easy-Peesy!</strong></h3><p>If you already are an Android Developer or have some idea about the framework, then you can relate the two frameworks and the components easily.</p><p>You can think of UIViewControllers as your Activities. Do remember though, you can embed UIViewControllers in other UIViewControllers. Something like Fragments in Android where you can have multiple Fragments in one Activity (but NOT Activities in Activities). Other widgets that can be related easily are UILabel -&gt; TextView, UIButton -&gt; Button and so on. Similarly you have AlertDialog -&gt; UIAlertViewController and the likes.</p><p>You can check out this video from the Realm community. It gives a brief intro to iOS for Android Developers — <a href="https://realm.io/news/360andev-sarah-olson-intro-to-ios/">https://realm.io/news/360andev-sarah-olson-intro-to-ios/</a>.</p><p>Even if you do not come from Android background, do not worry! Simply dive into it and enjoy the learning experience. If you have some programming background building your first iOS app is pretty easy!</p><h3><strong>To IB or not to IB?</strong></h3><p>The <strong>Interface Builder(IB)</strong> really handy when it comes to designing your layouts. It is good and really helpful when you want to get started. It is really easy to use and quite intuitive.</p><p>If you are from come from some Android background it will look a bit restrictive at first. At least thats what I thought. Underneath all that Interface Builder shiny stuff, it generates XML like structure for your layout. Something that you would not like to see and not easy to work with directly.</p><p>When I got started I had read a lot of stuff about why you should not be using IB. Experienced iOS Devs recommended against using IB if you are working in a team. They suggest you design the layouts in code so as to save yourself a lot of headache in future.</p><p>IB does not seem to play well when you have a version control in place and a multiple devs working on the same project. One small move in IB will change the XML structure and BAM! You have merge conflicts in places you did not expect and resolving those will require spending longs hours in that XML!</p><blockquote>IB is amazing but brings a lot of evil with it! Watch out!</blockquote><p>Since I was the lone developer on this I decided to go ahead with IB. It helped me design the layout pretty easily and saved me a hell lot of time had I decided to ditch IB and implement the layouts in code. Adding constraints betweens views in IB is a piece of cake when compared to doing that in code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SWRVN2BszgPQHLyF7TNaFA.jpeg" /><figcaption><a href="https://www.flickr.com/photos/dasprid/8148007408">“GitHub Office”</a> by <a href="https://www.flickr.com/people/dasprid/"><em>Ben Scholzen</em></a><em> </em>is licensed under <a href="https://creativecommons.org/licenses/by/2.0">CC BY 2.0</a></figcaption></figure><h3><strong>Libraries! Libraries! Libraries!</strong></h3><p>A lot of my tasks were simplified by using libraries. The iOS libraries ecosystem is pretty huge. You can find a library for almost everything.</p><p>Some libraries that I ended up using were:</p><ol><li><a href="https://github.com/Alamofire/Alamofire">Alamofir</a>e: For all my network needs. Simple and easy to use. Does a lot of the heavy lifting when it comes to network calls. I used to use <a href="https://github.com/square/retrofit">Retrofit</a> in Android. Retrofit is way better with modular components. Did not find that flexibility with Alamofire though.</li><li><a href="https://github.com/Hearst-DD/ObjectMapper">ObjectMapper</a>: Mapping JSON response to Swift model classes. When in Android I used an <a href="http://www.jsonschema2pojo.org/">online service</a> to convert JSON responses to simple POJOs. Failed to find a service that does that when you want to do it for Swift and compatible with ObjectMapper.</li><li><a href="https://github.com/CosmicMind/Material">Material</a>: For the app that I was building, its Android counterpart was up and running already. I was asked to implement the same design in the iOS app. This library was a lifesaver for me! <br>When you want Material design inspired components for your iOS projects, look no further. This library has you covered. From Toolbars to NavigationDrawers and FABs to Snackbars, it has it all. It even has a lot of material icons bundled in with it. Simply amazing!</li><li><a href="https://github.com/onevcat/Kingfisher">Kingfisher</a>: Simple downloading and caching images from the web. In the Android world these functions are implemented in libraries like <a href="https://github.com/square/picasso">Picasso</a> and <a href="https://github.com/bumptech/glide">Glide</a>.</li><li><a href="https://github.com/kishikawakatsumi/KeychainAccess">KeychainAccess</a>: This is a simple wrapper library for implementing Keychains in your iOS app. What are keychains you ask? Keychain helps storing confidential data by encrypting it before saving it to the file system. Think of it as a secured SharedPreferences. Saving access tokens or user authentication information is one way to use keychains.</li><li><a href="https://github.com/ninjaprox/NVActivityIndicatorView">NVActivityIndicatorView</a>: Engage your users with these beautiful loaders while they wait for a certain task to finish or a certain network request to complete. Many options to choose from, each different from the other. Love it!</li></ol><p>These were some of the top libraries I used among others. I liked them and definitely recommend them for newbies in the iOS world to get up and running quickly. No point in reinventing the wheel! Just get sh*t done!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FvBGL0xnP5tjuE%2Ftwitter%2Fiframe&amp;src_secure=1&amp;url=http%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FvBGL0xnP5tjuE%2Fgiphy.gif&amp;image=http%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FvBGL0xnP5tjuE%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="325" frameborder="0" scrolling="no"><a href="https://medium.com/media/9cd56b3a433af45d8f8d0ce3746a2cd6/href">https://medium.com/media/9cd56b3a433af45d8f8d0ce3746a2cd6/href</a></iframe><h3><strong>To wrap it up!</strong></h3><p>A lot of the stuff that I mentioned were to get you started with iOS. Hopefully I will write a piece that helps you get ready for deploying to the app store. Stay tuned and follow.</p><p>If you know someone who is getting started with iOS, share this post with them. I hope this helps them.</p><p>This is my first post and I know its not perfect. Let me know in the responses section if you have any suggestions and criticisms. Thanks!</p><h3><strong>Last but not least…</strong></h3><p>I would like to thank the team at <a href="http://applab.tech/">Applab</a> for allowing me to help them with this project. I can’t wait to see the app in the app store. It was great fun working with the team, <a href="https://www.linkedin.com/in/javedkhatri/">Javed</a>, <a href="https://www.linkedin.com/in/sawantmandar/">Mandar</a> and <a href="https://www.linkedin.com/in/udaynaidu/">Uday</a>! Here is a bunch who understand both engineering and design. People who do not compromise on quality or cut corners. People who strive to build great products. People who strive to make a difference. I wish them all the best and hope to work with them soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3c1eeef871" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>