Semaine: 9
Cours: Programmation sur iPhone et iPad
Établissement: Université Pierre & Marie Curie
Plateforme de MOOC: FUN
Pour compiler:
- Il faut ouvrir le fichier
owned-TaperJouer.xcworkspace/
, pas le projectowned-TaperJouer.xcodeproj/
. - Il faut être sûr de bien sélectionner le projet
owned-TaperJouer
en haut de la fenêtre avant de compiler.
Fonctionnalité :
- Joueur de musique (MPMusicPlayerController)
- trouve chansons dans le terminal
- montre la pochette de la musique
- montre l'index de la chanson et le nombre de chansons
- montre le progrès de la musique qui joue
- Historique de la musique
- on peut selectionner pour re-jouer la chanson
- Gestures
- comprend le double-tap et les swipes dans plusieurs sens pour commencer la musique et changer de chansons
- Universelle
- pour l'iPad, utilise SplitViewController
- pour l'iPhone, utilise TabBarController
- iOS6
- Rotation
Structure :
- Organisation Model-View-ViewModel (MVVM)
- Style Functional Reactive Programming au travers de ReactiveCocoa
- Highlight: smartly combines play signals (from double-tap) and song selection (from swipe or tap in history), with combineLatestWith/filter/map/distinctUntilChanged
- L'interface est construise programmatiquement; pas de Storyboard / Interface Builder
- Auto-Layout
- ARC, à cause de ReactiveCocoa et presque tout le monde l'utilise.
- Notation pointée (dot notation), parce que c'est idiomatique (comme l'explique Google et NY Times)
Librairies :
- ReactiveCocoa : pour UI binding et le style Functional Reactive Programming
- Masonry : pour créer facilement les contraintes pour Auto-Layout
- cocoapods : pour gérer les paquets comme Masonry
The MIT License (MIT)
Copyright (c) 2014 huyl
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.