Saltar al contenido ForoHackers

iOS: start here

iOS
#657 · Ophuscado · · Denunciar

iOS is the operating system of the iPhone, and the same platform family runs on tablets and other devices. Apps are written mainly in Swift, run in a strict sandbox, and are distributed through a curated store. Its tightly integrated hardware and software gives a consistent experience, and a platform with firm rules about what an app may do.

Key concepts

  • App lifecycle: an app moves between active, inactive, background and suspended states, and the system may end it.
  • Declarative interface: describe the screen as a function of state and let the framework update it.
  • Sandbox and entitlements: apps are isolated, and each capability, such as location or the camera, needs a declared reason and consent.
  • Memory management: automatic reference counting frees objects, so reference cycles are your job to break.
  • Signing and distribution: every app is signed, and development, testing and release use different profiles.

Vocabulary

  • Xcode: the standard development environment of the platform.
  • Simulator: a program that runs the platform on a computer for testing.
  • Delegate: an object that receives callbacks on behalf of another.
  • Bundle: the folder that contains an app, its resources and its metadata.

What to study, in order

  1. Learn Swift: optionals, value types and reference types, closures, protocols.
  2. Build a one-screen app and run it in the simulator and, when you can, on a device.
  3. Add navigation, a list fed by a network request, and local storage.
  4. Study the lifecycle and concurrency: what runs on the main thread and what must not.
  5. Read the platform's human interface guidelines and compare an app that follows them with one that does not.

Related tags

#swift #mobile-security #interface-design #cross-platform

Inicia sesión o únete para responder.