{"action":"created","issue":{"url":"https://api.github.com/repos/lminhtm/LMDropdownView/issues/9","labels_url":"https://api.github.com/repos/lminhtm/LMDropdownView/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/lminhtm/LMDropdownView/issues/9/comments","events_url":"https://api.github.com/repos/lminhtm/LMDropdownView/issues/9/events","html_url":"https://github.com/lminhtm/LMDropdownView/issues/9","id":118437165,"number":9,"title":"DropDownView hidden behind navigation bar?","user":{"login":"OmarBizreh","id":3820516,"avatar_url":"https://avatars.githubusercontent.com/u/3820516?v=3","gravatar_id":"","url":"https://api.github.com/users/OmarBizreh","html_url":"https://github.com/OmarBizreh","followers_url":"https://api.github.com/users/OmarBizreh/followers","following_url":"https://api.github.com/users/OmarBizreh/following{/other_user}","gists_url":"https://api.github.com/users/OmarBizreh/gists{/gist_id}","starred_url":"https://api.github.com/users/OmarBizreh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OmarBizreh/subscriptions","organizations_url":"https://api.github.com/users/OmarBizreh/orgs","repos_url":"https://api.github.com/users/OmarBizreh/repos","events_url":"https://api.github.com/users/OmarBizreh/events{/privacy}","received_events_url":"https://api.github.com/users/OmarBizreh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T18:01:15Z","updated_at":"2015-11-24T03:45:33Z","closed_at":null,"body":"I'm using LMDropdownView in a swift project this is my code:\r\n```Swift\r\ntable.frame = CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), CGRectGetHeight(self.view.bounds) / 2);\r\n        table.dataSource = self\r\n        table.delegate = self\r\n        table.separatorStyle = .None\r\n        table.registerNib(UINib(nibName: \"ChildTableViewCell\", bundle: NSBundle.mainBundle()), forCellReuseIdentifier: \"cell\")\r\n        table.backgroundColor = UIColor(red:40.0/255,green:196.0/255,blue:80.0/255,alpha:1)\r\n        \r\n        \r\n        if drop.isOpen {\r\n            drop.hide()\r\n        }else{\r\n           drop.showFromNavigationController(self.navigationController!, withContentView: table)\r\n       }\r\n```\r\nand this is the result: \r\n\r\n\r\n![untitled](https://cloud.githubusercontent.com/assets/3820516/11344915/a89bfa44-921c-11e5-92d1-966ce68b4cb1.png)\r\n\r\n\r\n\r\nLMDropdownview seems to always start from point x = 0, y = 0. What should I do? I checked your demo code and couldn't reach a solution.\r\n\r\nThanks in advance.\r\n"},"comment":{"url":"https://api.github.com/repos/lminhtm/LMDropdownView/issues/comments/159142535","html_url":"https://github.com/lminhtm/LMDropdownView/issues/9#issuecomment-159142535","issue_url":"https://api.github.com/repos/lminhtm/LMDropdownView/issues/9","id":159142535,"user":{"login":"lminhtm","id":4227352,"avatar_url":"https://avatars.githubusercontent.com/u/4227352?v=3","gravatar_id":"","url":"https://api.github.com/users/lminhtm","html_url":"https://github.com/lminhtm","followers_url":"https://api.github.com/users/lminhtm/followers","following_url":"https://api.github.com/users/lminhtm/following{/other_user}","gists_url":"https://api.github.com/users/lminhtm/gists{/gist_id}","starred_url":"https://api.github.com/users/lminhtm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lminhtm/subscriptions","organizations_url":"https://api.github.com/users/lminhtm/orgs","repos_url":"https://api.github.com/users/lminhtm/repos","events_url":"https://api.github.com/users/lminhtm/events{/privacy}","received_events_url":"https://api.github.com/users/lminhtm/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T03:45:33Z","updated_at":"2015-11-24T03:45:33Z","body":"@OmarBizreh you should try this method:\r\n- (void)showInView:(UIView *)containerView withContentView:(UIView *)contentView atOrigin:(CGPoint)origin;\r\n\r\nHope it work for you."}}