📜 ⬆️ ⬇️

WWDC 2014. Wednesday News

On the third day, WWDC had more technical and less “intriguing” sessions (Integrating Swift with Objective-C, What's New in LLVM, Cross Platform Nearby Networking, Creating Custom iOS User Interfaces, etc.), passed master classes on using components and dive into swift.

Report by Arthur mc_murphy Sakharov, Redmadrobot



SESSION Integrating Swift with Objective-C

Session Building Adaptive Apps with UIKit
compact width, normal height
compact width, compact height
normal width, compact height
normal width, normal height
And this is enough for all devices and all orientations. And all this can be done in one storyboard with the mouse.

Swift Playgrounds
Playgrounds are generally a breakthrough in the development process. Playgrounds in themselves a lot of things collected in a convenient form.
We want to check something, some feature. Instead of creating an empty project and writing something in it, setting it up and running it many times - this is how to open a notepad and check everything interactively.
')
What is the Swift Playground?
  1. Playground is such a document format for Xcode. It includes code files and resources.
  2. Each time the code changes, it automatically starts and the result immediately appears.
  3. Both the code and the result are displayed in one window, side by side.

Why do we need playgrounds?
  1. Learn a new language
  2. Get acquainted with online documentation.
  3. Teach newbies development in general
  4. Quickly prototype algorithms and test them
  5. Write code that draws something, without running it every time
  6. To visualize any code that computes something.
  7. For experiments with APIs and framework games.

What can playgrounds do?
  1. You can see objects in QuickLook in any line of code.
  2. UITableView is rendered in them, and when the code changes, changes are immediately visible.
  3. If something in them is not rendered, you can write a custom QuickLook for any of its class.
  4. You can debug asynchronous operations and view data from all threads at once.
  5. There was a demo of how to develop the insertSort algorithm in the playground and illustrate all the steps of the algorithm. Impressive.

What not to do in the Playgrounds?
  1. They do not support user interaction in any way; everything can be changed only through code.
  2. This is performed only in the simulator, not on the device.
  3. You can not import your frameworks (however, you can copy the code from them).

WWDC 2014. First impressions of the witness
WWDC 2014. Second Day Slice
WWDC 2014. Report for Thursday

Source: https://habr.com/ru/post/225369/


All Articles