Giter Site home page Giter Site logo

Lesson 002. Homework about otus-ios-ozalexo HOT 1 OPEN

ozalexo avatar ozalexo commented on September 26, 2024
Lesson 002. Homework

from otus-ios-ozalexo.

Comments (1)

ozalexo avatar ozalexo commented on September 26, 2024

Цели

  • Практически изучить App Life Cycle для использования это в сохранении и восстановлении данных
  • Научиться использовать View controller lifecycle behaviors для того чтобы контролировать экран на каждой стадии
  • Научиться модифицировать NavigationController стек, для нелинейных переходов в приложениии

  1. В AppDelegate реализовать методы App Life Cycle и расставить в них print c названиями стадий или функций
    • Для стадии запуска(Launching) приложения:
      1. application: willFinishLaunchingWithOptions
      2. application: didFinishLaunchingWithOptions
      3. applicationWillEnterForeground
      4. applicationDidBecomeActive
    • Для стадии выключения(Terminating) приложения:
      1. applicationWillResignActive
      2. applicationDidEnterBackground
      3. applicationWillTerminate

  1. Реализовать View controller lifecycle behaviors для вью контоллера Benchmark
    2.1 Добавить поведение afterAppearing c запуском таймера: timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(runTimed), userInfo: nil, repeats: true). В runTimed сделайте принт, например так print(Date())
    2.2 На beforeDisappearing вызвать таймеру invalidate() чтобы на других экранах он не тикал и не принтил

  1. На ViewController таба Profile
    3.1 написать поведение со сменой цвета статус бара и view.backgroundColor на черный

  1. На ViewController (первом) таба Feed сделать кнопку
    4.1 По кнопке пушить новый ViewController (второй)
    4.2 На новом ViewController добавить еще одну кнопку и по ней показать третий ViewController
    4.3 Реализовать переход с третьего ViewController на первый

from otus-ios-ozalexo.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.