diff --git a/iOSProject/pyunrihae/pyunrihae/AppDelegate.swift b/iOSProject/pyunrihae/pyunrihae/AppDelegate.swift index e4a73dc5..850c004a 100644 --- a/iOSProject/pyunrihae/pyunrihae/AppDelegate.swift +++ b/iOSProject/pyunrihae/pyunrihae/AppDelegate.swift @@ -11,7 +11,6 @@ import GoogleSignIn @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate,GIDSignInDelegate{ - var ref : DatabaseReference! = Database.database().reference() var window: UIWindow? var productList : [Product] = [] let category = ["전체","도시락","김밥","베이커리","라면","식품","스낵","아이스크림","음료"] @@ -25,7 +24,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate,GIDSignInDelegate{ GIDSignIn.sharedInstance().clientID = FirebaseApp.app()?.options.clientID GIDSignIn.sharedInstance().delegate = self - return true } func applicationWillResignActive(_ application: UIApplication) { diff --git a/iOSProject/pyunrihae/pyunrihae/YNSearch/YNSearch/YNSearchViewController.swift b/iOSProject/pyunrihae/pyunrihae/YNSearch/YNSearch/YNSearchViewController.swift index e966c461..05f5c584 100644 --- a/iOSProject/pyunrihae/pyunrihae/YNSearch/YNSearch/YNSearchViewController.swift +++ b/iOSProject/pyunrihae/pyunrihae/YNSearch/YNSearch/YNSearchViewController.swift @@ -29,14 +29,14 @@ open class YNSearchViewController: UIViewController, UITextFieldDelegate { } open func ynSearchinit() { - self.ynSearchTextfieldView = YNSearchTextFieldView(frame: CGRect(x: 20, y: 64, width: width-40, height: 50)) + self.ynSearchTextfieldView = YNSearchTextFieldView(frame: CGRect(x: 20, y: 0, width: width-40, height: 50)) self.ynSearchTextfieldView.ynSearchTextField.delegate = self self.ynSearchTextfieldView.ynSearchTextField.addTarget(self, action: #selector(ynSearchTextfieldTextChanged(_:)), for: .editingChanged) self.ynSearchTextfieldView.cancelButton.addTarget(self, action: #selector(ynSearchTextfieldcancelButtonClicked), for: .touchUpInside) self.ynSearchTextfieldView.searchButton.addTarget(self, action: #selector(ynSearchTextfieldsearchButtonClicked), for: .touchUpInside) self.view.addSubview(self.ynSearchTextfieldView) - self.ynSearchView = YNSearchView(frame: CGRect(x: 0, y: 114, width: width, height: height-70)) + self.ynSearchView = YNSearchView(frame: CGRect(x: 0, y: 50, width: width, height: height-70)) self.view.addSubview(self.ynSearchView) }