{"id":7496,"date":"2017-12-30T09:37:21","date_gmt":"2017-12-30T09:37:21","guid":{"rendered":"https:\/\/weblizar.com\/blog\/?p=7496"},"modified":"2017-12-30T09:37:21","modified_gmt":"2017-12-30T09:37:21","slug":"how-to-create-ios-application","status":"publish","type":"post","link":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/","title":{"rendered":"How to Create iOS Application &#8211; DIY Tips"},"content":{"rendered":"<p>At least We are creating a basic one view application that will run on the iOS simulator.<\/p>\n<p>Please follow these steps.<\/p>\n<p><b>Step 1<\/b>\u00a0\u2212 After successful download opens Xcode software and click on Xcode project.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7510 size-full\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img1-1.png\" alt=\"\" width=\"830\" height=\"499\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img1-1.png 830w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img1-1-300x180.png 300w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img1-1-768x462.png 768w\" sizes=\"auto, (max-width: 830px) 100vw, 830px\" \/><\/p>\n<p><b>Step 2<\/b>\u00a0\u2212 Now in wizard box Select\u00a0Single View Application for creating a basic\u00a0simple app<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7511 size-full\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img2-1.png\" alt=\"\" width=\"740\" height=\"496\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img2-1.png 740w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img2-1-300x201.png 300w\" sizes=\"auto, (max-width: 740px) 100vw, 740px\" \/><\/p>\n<p><b>Step 3<\/b>\u00a0\u2212 Now this time gives the name of your application and also enter Organization name,\u00a0Organization Identifier.<\/p>\n<p>Select your favorite language from drop-down for creating app and language list are below<\/p>\n<ul>\n<li>Objective C<\/li>\n<li>Swift<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7512 size-full\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img3-1.png\" alt=\"\" width=\"727\" height=\"524\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img3-1.png 727w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img3-1-300x216.png 300w\" sizes=\"auto, (max-width: 727px) 100vw, 727px\" \/><\/p>\n<p><b>Step 4<\/b>\u00a0\u2212 Please select the Use Automatic Reference Counting.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Suggested Post:<\/strong><\/span>\u00a0<a title=\"How to Register as an iOS Developer \u2013 DIY Tips\" href=\"https:\/\/weblizar.com\/blog\/how-to-register-as-an-ios-developer\/\" target=\"_blank\" rel=\"bookmark noopener\">How to Register as an iOS Developer \u2013 DIY Tips<\/a><\/p>\n<h3>What is\u00a0Automatic Reference Counting?<\/h3>\n<p>Swift uses\u00a0<em>Automatic Reference Counting<\/em>\u00a0(ARC) to track and manage your app\u2019s memory usage. In most cases, this means that memory management \u201cjust works\u201d in Swift, and you do not need to think about memory management yourself. ARC automatically frees up the memory used by class instances when those instances are no longer needed.<\/p>\n<p><b>Step 5<\/b>\u00a0\u2212 Now select folder for the project and click on create button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7513 size-full\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img4.jpg\" alt=\"\" width=\"560\" height=\"500\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img4.jpg 560w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img4-300x268.jpg 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p><b>Step 6<\/b>\u00a0\u2212 After click on create button a next window opened for select your app&#8217;s orientation\u00a0 \u2212<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7514 size-full\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img6.png\" alt=\"\" width=\"742\" height=\"572\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img6.png 742w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img6-300x231.png 300w\" sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In above screenshot, you can able to select orientation like portrait, landscape mode and also you can set build and release settings. when we create the app you select minimum deployment target like as an Android API level jellybean,\u00a0lollipop, marshmallow etc.<\/p>\n<p>There is a field deployment target, the device version from which we want to support, lets select 4.3, which is the minimum deployment target allowed now. For now, these are not required and let&#8217;s focus on running the application.<\/p>\n<p><b>Step 7<\/b>\u00a0\u2212 This time to select your\u00a0iPhone simulator for run app as a real environment\u00a0after clicking on run button<\/p>\n<p><b>Step 8<\/b>\u00a0\u2212 And now your first application successfully run. Output is view in simulator is below \u2212<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-7515 size-full aligncenter\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img7.png\" alt=\"\" width=\"852\" height=\"709\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img7.png 852w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img7-300x250.png 300w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img7-768x639.png 768w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>We change the background color just to have a start with the interface builder. Click on\u00a0 ViewController.xib. next step click on background option on the right side, change the color and run it again.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-7519 size-full\" src=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img9.jpg\" alt=\"\" width=\"1280\" height=\"720\" srcset=\"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img9.jpg 1280w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img9-300x169.jpg 300w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img9-768x432.jpg 768w, https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/img9-1024x576.jpg 1024w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>In the above project, by default, the deployment target would have been set to iOS 6.0 and auto-layout will be enabled. To ensure that our application runs on devices that are on iOS 4.3 onwards, we have already modified the deployment target at the start of the creation of this application, but we didn&#8217;t disable auto-layout.<\/p>\n<p>To disable auto-layout, we need to deselect the auto-layout checkbox in the file inspector of each nib, i.e., the xib files. The various sections of Xcode project IDE are given in the following figure (Courtesy: Apple Xcode 4 User documentation).<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Related Post:<\/strong><\/span>\u00a0<a title=\"How to be a Member of Apple Developer Program\" href=\"https:\/\/weblizar.com\/blog\/how-member-of-apple-developer-program\/\" rel=\"bookmark\">How to be a Member of Apple Developer Program<\/a><\/p>\n<p>File inspector is found in the inspector selector bar as shown above and auto-layout can be unchecked there. Auto-layout can be used when you want to target only iOS 6 devices. Also, you&#8217;ll be able to use many new features like passbook if you raise the deployment target to iOS 6. For now, let&#8217;s stick to iOS 4.3 as the deployment target.<\/p>\n<p>You can also learn how to <a href=\"https:\/\/weblizar.com\/blog\/how-to-create-virtual-device-on-android-studio\/\" target=\"_blank\" rel=\"noopener\">create a virtual device in the android studio<\/a>.<\/p>\n<h2>Our First iOS Application code files<\/h2>\n<p>Now you find\u00a0different five files they are following \u2212<\/p>\n<ul class=\"list\">\n<li>AppDelegate.h<\/li>\n<li>AppDelegate.m<\/li>\n<li>ViewController.h<\/li>\n<li>ViewController.m<\/li>\n<li>ViewController.xib<\/li>\n<\/ul>\n<h2><b style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">Conclusion of our first ios application code<\/b><span style=\"font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;\">\u00a0\u2212<\/span><\/h2>\n<ul class=\"list\">\n<li>AppDelegate inherits from UIResponder that handles iOS events.<\/li>\n<li>Implements the delegate methods of UIApplicationDelegate, which provides key application events like finished launching, about to terminate and so on.<\/li>\n<li>UIWindow object to manage and coordinate the various views on the iOS device screen. It&#8217;s like the base view over which all other views are loaded. Generally, there is only one window for an application.<\/li>\n<li>UIViewController to handle the screen flow.<\/li>\n<\/ul>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>At least We are creating a basic one view application that will run on the iOS simulator. Please follow these steps. Step 1\u00a0\u2212 After successful download opens Xcode software and click on Xcode project. Step 2\u00a0\u2212 Now in wizard box Select\u00a0Single View Application for creating a basic\u00a0simple app Step 3\u00a0\u2212 Now this time gives the<\/p>\n","protected":false},"author":5,"featured_media":7530,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1283],"tags":[1285,1284,1286],"class_list":["post-7496","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ios","tag-how-to-make-ios-app","tag-ios-app-development","tag-ios-application"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create iOS Application - DIY Tips - Weblizar Blog<\/title>\n<meta name=\"description\" content=\"Let&#039;s talk about some DIY tips on how to create IOS application on your own from the scratch. The tips provided in the blog post are easy to be followed.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create iOS Application - DIY Tips - Weblizar Blog\" \/>\n<meta property=\"og:description\" content=\"Let&#039;s talk about some DIY tips on how to create IOS application on your own from the scratch. The tips provided in the blog post are easy to be followed.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/\" \/>\n<meta property=\"og:site_name\" content=\"Weblizar Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/weblizarwp\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-30T09:37:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Create-iOS-Application-DIY-Tips.jpg?fit=900%2C563&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"563\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Danish Ansari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@weblizar\" \/>\n<meta name=\"twitter:site\" content=\"@weblizar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Danish Ansari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create iOS Application - DIY Tips - Weblizar Blog","description":"Let's talk about some DIY tips on how to create IOS application on your own from the scratch. The tips provided in the blog post are easy to be followed.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/","og_locale":"en_US","og_type":"article","og_title":"How to Create iOS Application - DIY Tips - Weblizar Blog","og_description":"Let's talk about some DIY tips on how to create IOS application on your own from the scratch. The tips provided in the blog post are easy to be followed.","og_url":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/","og_site_name":"Weblizar Blog","article_publisher":"http:\/\/www.facebook.com\/weblizarwp","article_published_time":"2017-12-30T09:37:21+00:00","og_image":[{"width":900,"height":563,"url":"https:\/\/i0.wp.com\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Create-iOS-Application-DIY-Tips.jpg?fit=900%2C563&ssl=1","type":"image\/jpeg"}],"author":"Danish Ansari","twitter_card":"summary_large_image","twitter_creator":"@weblizar","twitter_site":"@weblizar","twitter_misc":{"Written by":"Danish Ansari","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#article","isPartOf":{"@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/"},"author":{"name":"Danish Ansari","@id":"https:\/\/weblizar.com\/blog\/#\/schema\/person\/d317218747ba5e5aa51886062ac0b628"},"headline":"How to Create iOS Application &#8211; DIY Tips","datePublished":"2017-12-30T09:37:21+00:00","mainEntityOfPage":{"@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/"},"wordCount":632,"commentCount":0,"image":{"@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#primaryimage"},"thumbnailUrl":"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Create-iOS-Application-DIY-Tips.jpg","keywords":["how to make ios app","ios app development","ios application"],"articleSection":["IOS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/","url":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/","name":"How to Create iOS Application - DIY Tips - Weblizar Blog","isPartOf":{"@id":"https:\/\/weblizar.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#primaryimage"},"image":{"@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#primaryimage"},"thumbnailUrl":"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Create-iOS-Application-DIY-Tips.jpg","datePublished":"2017-12-30T09:37:21+00:00","author":{"@id":"https:\/\/weblizar.com\/blog\/#\/schema\/person\/d317218747ba5e5aa51886062ac0b628"},"description":"Let's talk about some DIY tips on how to create IOS application on your own from the scratch. The tips provided in the blog post are easy to be followed.","breadcrumb":{"@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#primaryimage","url":"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Create-iOS-Application-DIY-Tips.jpg","contentUrl":"https:\/\/weblizar.com\/blog\/wp-content\/uploads\/2017\/12\/How-to-Create-iOS-Application-DIY-Tips.jpg","width":900,"height":563,"caption":"How to Create iOS Application DIY Tips"},{"@type":"BreadcrumbList","@id":"https:\/\/weblizar.com\/blog\/how-to-create-ios-application\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/weblizar.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Create iOS Application &#8211; DIY Tips"}]},{"@type":"WebSite","@id":"https:\/\/weblizar.com\/blog\/#website","url":"https:\/\/weblizar.com\/blog\/","name":"Weblizar Blog","description":"Update yourself with all the latest tech news revolving around wordpress all at one place","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/weblizar.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/weblizar.com\/blog\/#\/schema\/person\/d317218747ba5e5aa51886062ac0b628","name":"Danish Ansari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8578053f8112ac6a0c136fbc87a10af48375433622bcb3df612e573bd2513ef6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8578053f8112ac6a0c136fbc87a10af48375433622bcb3df612e573bd2513ef6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8578053f8112ac6a0c136fbc87a10af48375433622bcb3df612e573bd2513ef6?s=96&d=mm&r=g","caption":"Danish Ansari"}}]}},"_links":{"self":[{"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/posts\/7496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/comments?post=7496"}],"version-history":[{"count":0,"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/posts\/7496\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/media\/7530"}],"wp:attachment":[{"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/media?parent=7496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/categories?post=7496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblizar.com\/blog\/wp-json\/wp\/v2\/tags?post=7496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}