Skip to content

Instantly share code, notes, and snippets.

@coreyfloyd
Last active December 17, 2015 03:18
Show Gist options
  • Select an option

  • Save coreyfloyd/5542224 to your computer and use it in GitHub Desktop.

Select an option

Save coreyfloyd/5542224 to your computer and use it in GitHub Desktop.

Revisions

  1. coreyfloyd revised this gist May 13, 2013. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion iOS Architecture Guide
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,12 @@ Code for iOS 6 - will back port to iOS 5 as necessary

    When creating “updateUI” methods, pass an animated flag: ex. updateUIanimated:(BOOL)animated;

    Constants should be defined in the file that uses them if possible (i.e. Notification constants should be defined in the header of the file that posts the notification)
    Constants should be defined in the file that uses them if possible (i.e. Notification constants should be defined in the header of the file that posts the notification)

    When a notification is required, evaluate potential patterns in this order, selecting the highest rated viable pattern:
    1. Blocks
    2. Notification Center
    3. Delegation
    4. ReactiveCocoa
    4. KVO (MAKVONotificationCenter)

  2. coreyfloyd revised this gist May 9, 2013. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion iOS Architecture Guide
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,6 @@ Implement classes with dependency injection - favor providing all data at instan

    Code for iOS 6 - will back port to iOS 5 as necessary

    When creating “updateUI” methods, pass an animated flag: ex. updateUIanimated:(BOOL)animated;
    When creating “updateUI” methods, pass an animated flag: ex. updateUIanimated:(BOOL)animated;

    Constants should be defined in the file that uses them if possible (i.e. Notification constants should be defined in the header of the file that posts the notification)
  3. coreyfloyd created this gist May 8, 2013.
    11 changes: 11 additions & 0 deletions iOS Architecture Guide
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Model Objects should be dumb - minimal logic

    Model Controllers should perform model manipulations that are UI independent (like network and processing) exception: user input

    No Story Boards

    Implement classes with dependency injection - favor providing all data at instantiation

    Code for iOS 6 - will back port to iOS 5 as necessary

    When creating “updateUI” methods, pass an animated flag: ex. updateUIanimated:(BOOL)animated;