Sunday, 3 May 2015

Variable,Array,Dictionary ,IOS Development,A hub for beginner



I last blog we learnt that how to create Hello World program Using swift.Before to create a Iphone application you have to little knowledge about swift programming,In this blog explain basic programming in swift for IOS development.
No need of any programming knowledge to learn that. 

So lets create playground project to learn all this things.Create a project and after that go on xcode -> file -> playground  Select platform as ios 

save this on same folder of your project(can find it easily)


The editor, will look like that.

So in this blog we will learn about swift variables,array-dictionary..

Variables : In swift we use var keyword to define variables.for example str is variable and it is sort of string..In the right hand site it show the instant result so its good platform to learn 
swift 
once you create a variable it easy to update that 
     

I added playground pic,You will learn from that how to define variable and how to convert from one type to different type.I also explain how to add other variable in string.


There has lot of variables but these three will be more useful that you should have to know.
Now I will explain little bit about array and dictionary.

Array


Dictionary 
Difference b/w array and dictionary is that array is ordered and dictionary is not.



Hope you will learn basic ingredient of swift programming 
Thanks for reading in next blog will explain you how to use if and else or loops.
If any question or problem related to that feel free to mail me or comment I will try to give response ASAP.


happy coding.


Saturday, 2 May 2015

Your First Hello world app in Xcode , Ios development with swift


In last blog we learn how to install xcode in mac and window.Now your xcode install so Today we will learn How to create hello world program(First program) in xcode. And will also know about little bit about xcode.

So now go in application folder and click xcode.Some time pop up window come it it didnt come just open go on menu bar and create new project.
File -> New ->Project



You will get this screen.

We have got number of default application types that we can use.
    1.First one us master default application is it much like ipad email. In which you will   
        get some content in left and some content in right.

    2.Page based application : in which you can switch from page to page using this  
       option below.

    3.Tabbed application is similar to page based application.

    4.Empty application doesn’t contain any thing.

    5.Game there also

We will focusing on first single view application. That creates a some kind of demo application that has only single page, or single view

In the left hand side there has also lot of option. Don’t worry at this stage it is not important we will discuss on these topics in later blogs.

Now Click on NEXT button


Here language is swift and objective c. We will focusing on swift in this ios development blogs. Will check little bit later on objective C.

In device there has three options iphone ,ipad or both iphone and Ipad. In starting moment we just focus on I phone later will use universal.



Now when You click on next. It will ask to save your project. Just try all your ios development project in one folder So later you can find easily.
I am saving in blogs project.

Now lets discuss about Editor of xcode.

Now we run our code.select device in which you want to run your code.

After it will be build your project successfully.And a window will come if he didn’t then manually open. From right side of your doc bar of mac.

Congratss you successfully created your hello world program.Some time simulator screen is not fit with our screenIn this case you can go on window and change the scale in which you feel comportable.


Thanks for reading in next blog we will focus on basic component labels,buttons,textview..etc.

If any question feel free to mail me or comment.I will try to response fase ASAP.

Happy coding