iOS Development For Android Developers

  • Published on
    16-Apr-2017

  • View
    215

  • Download
    2

Embed Size (px)

Transcript

<ul><li><p>iOS Development for Android Developers</p><p>Darryl Bayliss @Dazindustries</p></li><li><p>The User Interface</p></li><li><p>The User Interface</p><p> Visual Designers available </p><p> XML based layouts (dont touch it in iOS!) </p><p> Constraint based systems</p></li><li><p>Lifecycles</p></li><li><p>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override protected void onStart() { super.onStart(); } @Override protected void onResume() { super.onResume(); } @Override protected void onStop() { super.onStop(); } } </p></li><li><p>class ViewController: UIViewController {</p><p> override func viewDidLoad() { super.viewDidLoad() }</p><p> override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) } override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) } override func viewDidDisappear(animated: Bool) { super.viewDidDisappear(animated) }}</p></li><li><p>Components </p></li><li><p>Android iOSActivity View Controller</p><p>Fragment (Child) View Controller</p><p>TextView UILabel</p><p>ListView / RecyclerView UITableView / UICollectionView</p><p>DialogFragment UIAlertController</p></li><li><p>Language </p></li><li><p>Java Swift</p><p>OOP OOP / Functional</p><p>Interfaces Delegates</p><p>Lambda Expressions Closures</p></li><li><p>public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } @Override protected void onStart() { super.onStart(); } @Override protected void onResume() { super.onResume(); } @Override protected void onStop() { super.onStop(); } } </p></li><li><p>class ViewController: UIViewController {</p><p> override func viewDidLoad() { super.viewDidLoad() }</p><p> override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) } override func viewDidAppear(animated: Bool) { super.viewDidAppear(animated) } override func viewDidDisappear(animated: Bool) { super.viewDidDisappear(animated) }}</p></li><li><p>[[[[[[[self doSomethingHere] thenDoAnotherThing] ohAndAnotherThing] whereDoesTheMadnessEnd] almostThere] </p><p>finalThingYay] ohNoItWasnt];</p></li><li><p>The Future?</p></li><li><p>AR!</p></li><li><p>Swift on Android!</p></li><li><p>Thanks!</p><p>@dazindustries dazindustries.co.ukdarrylbayliss@dazindustries.co.uk</p><p>http://dazindustries.co.ukmailto:darrylbayliss@dazindustries.co.uk</p></li></ul>