Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlinFeng committed Sep 5, 2015
1 parent c7cbb1f commit ff31a6e
Show file tree
Hide file tree
Showing 20 changed files with 116 additions and 109 deletions.
218 changes: 110 additions & 108 deletions PhotoBrowser.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ let CFPBThumbNailWH: CGFloat = 120

let CFPBSingleTapNofi = "CFPBSingleTapNofi"
let CFPBDismissBtnClickNoti = "CFPBDismissBtnClickNoti"
let PhotoBrowserDidShowNoti = "PhotoBrowserDidShowNoti"
let PhotoBrowserDidDismissNoti = "PhotoBrowserDidDismissNoti"
let CFPBShowKey = "CFPBShowKey"
let CFPBCacheKey = "CFPBCacheKey"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ extension PhotoBrowser{
zoomOutWithAnim(page)

NSUserDefaults.standardUserDefaults().setBool(false, forKey: CFPBShowKey)
NSNotificationCenter.defaultCenter().postNotificationName(PhotoBrowserDidDismissNoti, object: self)
}


Expand Down Expand Up @@ -149,7 +150,6 @@ extension PhotoBrowser{
}

func show(inVC vc: UIViewController,index: Int){

assert(showType != nil, "Error: You Must Set showType!")
assert(photoType != nil, "Error: You Must Set photoType!")
assert(photoModels != nil, "Error: You Must Set DataModels!")
Expand Down Expand Up @@ -206,6 +206,9 @@ extension PhotoBrowser{
pagecontrol.currentPage = index
}
}

NSNotificationCenter.defaultCenter().postNotificationName(PhotoBrowserDidShowNoti, object: self)

}


Expand Down
File renamed without changes.

0 comments on commit ff31a6e

Please sign in to comment.