{"action":"created","issue":{"url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/154","repository_url":"https://api.github.com/repos/hyperoslo/ImagePicker","labels_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/154/comments","events_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/154/events","html_url":"https://github.com/hyperoslo/ImagePicker/issues/154","id":153209313,"number":154,"title":"Conflict between ImagePickerController and ImagePickerDelegate methods","user":{"login":"aliasbody","id":9455122,"avatar_url":"https://avatars.githubusercontent.com/u/9455122?v=3","gravatar_id":"","url":"https://api.github.com/users/aliasbody","html_url":"https://github.com/aliasbody","followers_url":"https://api.github.com/users/aliasbody/followers","following_url":"https://api.github.com/users/aliasbody/following{/other_user}","gists_url":"https://api.github.com/users/aliasbody/gists{/gist_id}","starred_url":"https://api.github.com/users/aliasbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliasbody/subscriptions","organizations_url":"https://api.github.com/users/aliasbody/orgs","repos_url":"https://api.github.com/users/aliasbody/repos","events_url":"https://api.github.com/users/aliasbody/events{/privacy}","received_events_url":"https://api.github.com/users/aliasbody/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-05T10:53:28Z","updated_at":"2016-06-03T09:13:30Z","closed_at":null,"body":"Hello,\r\n\r\nMaybe I am the \"dumb\" programmer, and if so please forgive me, but I'll ask the question anyway.\r\n\r\nI need to implement a UIViewController inside a UINavigationController with a UITabBarController. For this I created the class like this:\r\n\r\n```\r\nclass VC_MyView: ImagePickerController, ImagePickerDelegate {\r\n    override func viewDidLoad() {\r\n        self.viewDidLoad() // Necessary otherwise the ImagePickerView won't start\r\n        self.delegate = self\r\n    }\r\n}\r\n```\r\n\r\nNot the delegate protocol makes me add the usual 3 functions:\r\n`func wrapperDidPress(images: [UIImage])`\r\n`func doneButtonDidPress(images: [UIImage])`\r\n`func cancelButtonDidPress()`\r\n\r\nThe problem is with **cancelButtonDidPress()** since it conflicts with a function with the same name under ImagePickerController.\r\n\r\nThe only soluton I've found was to replace all the functions from **BottomContainerView.swift** by adding a \"bottom\" before every function name (and then correct the code at the right classes), which will make it look like this:\r\n\r\n```\r\nprotocol BottomContainerViewDelegate: class {\r\n    func bottomPickerButtonDidPress()\r\n    func bottomDoneButtonDidPress()\r\n    func bottomCancelButtonDidPress()\r\n    func bottomImageStackViewDidPress()\r\n}\r\n```\r\n\r\nThis is far from perfect, but I really don't know how to solve the problem otherwise, and this is why I'm creating this issue.\r\n\r\nSo is this a real problem, or is it simply a skill (or lack of it) problem?"},"comment":{"url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/comments/223530169","html_url":"https://github.com/hyperoslo/ImagePicker/issues/154#issuecomment-223530169","issue_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/154","id":223530169,"user":{"login":"aliasbody","id":9455122,"avatar_url":"https://avatars.githubusercontent.com/u/9455122?v=3","gravatar_id":"","url":"https://api.github.com/users/aliasbody","html_url":"https://github.com/aliasbody","followers_url":"https://api.github.com/users/aliasbody/followers","following_url":"https://api.github.com/users/aliasbody/following{/other_user}","gists_url":"https://api.github.com/users/aliasbody/gists{/gist_id}","starred_url":"https://api.github.com/users/aliasbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aliasbody/subscriptions","organizations_url":"https://api.github.com/users/aliasbody/orgs","repos_url":"https://api.github.com/users/aliasbody/repos","events_url":"https://api.github.com/users/aliasbody/events{/privacy}","received_events_url":"https://api.github.com/users/aliasbody/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T09:13:30Z","updated_at":"2016-06-03T09:13:30Z","body":"The problem is still here:\r\n\r\n![captura de ecra 2016-06-03 as 10 12 53](https://cloud.githubusercontent.com/assets/9455122/15774352/cefac870-2973-11e6-8118-6e1870c844ae.png)\r\n"}}
{"actor":{"display_login":"aliasbody"}}