Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
I ios-tutorial
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ios-general
  • ios-tutorial
  • Wiki
  • gcd and math

Last edited by Artem Kalmykov Aug 15, 2017
Page history
This is an old version of this page. You can view the most recent version or browse the history.

gcd and math

GCD and Math

https://www.raywenderlich.com/79149/grand-central-dispatch-tutorial-swift-part-1

https://developer.apple.com/videos/play/wwdc2016/720/

https://github.com/SVProgressHUD/SVProgressHUD

You should do the following:

  1. Create a new branch from develop called feature/gcd
  2. Connect a new library SVProgressHUD via CocoaPods.
  3. Add a new button to OrganizationInfoViewController called “Calculate 10000th prime number”. It should calculate 10000th prime number in a background queue (global queue). Upon completion it should output the result in an UIAlertController. SVProgressHUD should be shown during calculation.
  4. Create a pull request.

HARDMODE: Write function for determining prime number yourself, without googling. Prime number = простое число.

You should be able to answer the following questions:

  • What is GCD used for?
  • What is main queue?
  • What is the difference between sync and async?
  • Can UI be changed in global queue?
Clone repository
  • autolayout
  • basic core data
  • basic networking
  • cocoapods
  • delegation
  • gcd and math
  • git tutorial
  • Home
  • ios basics
  • notifications
  • objective c basics
  • swift
  • ui table view