Skip to content

Commit

Permalink
170824 product 바로 업데이트 #146
Browse files Browse the repository at this point in the history
  • Loading branch information
JuneBuug committed Aug 24, 2017
1 parent d61911d commit 290ea66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions iOSProject/pyunrihae/pyunrihae/RankingViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class RankingViewController: UIViewController {
var scrollBar = UILabel()
var actInd: UIActivityIndicatorView = UIActivityIndicatorView()
let category = ["전체","도시락","김밥","베이커리","라면","식품","스낵","아이스크림","음료"]

func addCategoryBtn(){ // 카테고리 버튼 스크롤 뷰에 추가하기
categoryScrollView.isScrollEnabled = true
categoryScrollView.contentSize.width = CGFloat(70 * category.count)
Expand Down Expand Up @@ -115,6 +116,7 @@ class RankingViewController: UIViewController {
func addNotiObserver() {
NotificationCenter.default.addObserver(self, selector: #selector(selectCategory), name: NSNotification.Name("selectCategory"), object: nil)
}

override func viewDidLoad() {
super.viewDidLoad()
tableView.delegate = self
Expand All @@ -126,6 +128,9 @@ class RankingViewController: UIViewController {
isLoaded = true
// Do any additional setup after loading the view.

// Notification Observer
NotificationCenter.default.addObserver(self, selector: #selector(getRankingList), name: NSNotification.Name("productListChanged"), object: nil)

}

override func didReceiveMemoryWarning() {
Expand Down

0 comments on commit 290ea66

Please sign in to comment.