{"action":"closed","issue":{"url":"https://api.github.com/repos/onevcat/APNGKit/issues/6","labels_url":"https://api.github.com/repos/onevcat/APNGKit/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/onevcat/APNGKit/issues/6/comments","events_url":"https://api.github.com/repos/onevcat/APNGKit/issues/6/events","html_url":"https://github.com/onevcat/APNGKit/issues/6","id":113628881,"number":6,"title":"EXC_BAD_ACCESS on setting image","user":{"login":"yannickschuchmann","id":3863773,"avatar_url":"https://avatars.githubusercontent.com/u/3863773?v=3","gravatar_id":"","url":"https://api.github.com/users/yannickschuchmann","html_url":"https://github.com/yannickschuchmann","followers_url":"https://api.github.com/users/yannickschuchmann/followers","following_url":"https://api.github.com/users/yannickschuchmann/following{/other_user}","gists_url":"https://api.github.com/users/yannickschuchmann/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickschuchmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickschuchmann/subscriptions","organizations_url":"https://api.github.com/users/yannickschuchmann/orgs","repos_url":"https://api.github.com/users/yannickschuchmann/repos","events_url":"https://api.github.com/users/yannickschuchmann/events{/privacy}","received_events_url":"https://api.github.com/users/yannickschuchmann/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-27T16:47:58Z","updated_at":"2015-10-27T17:16:53Z","closed_at":"2015-10-27T17:16:53Z","body":"Hey,\r\nmany thanks for this project!\r\n\r\nCan you give some instructions about how I can set my image for instantiating a APNGImage?\r\n\r\nUsually I go with UIImage(named: \"my-image-name\") and it will go and get the correct resource from Images.xcassets.\r\nIs APNGImage(named: String) looking for resources inside Images.xcassets, similiar to UIImage(named: String)? \r\n\r\nI even tried to do work around and adding my image to \"Build Phases -> Copy Bundle Resources\". \r\n```\r\nlet path = NSBundle.mainBundle().pathForResource(\"animated2\", ofType: \"apng\")\r\nif let path = path {\r\n      let image2 = APNGImage(contentsOfFile: path)\r\n      apngImageView.image = image2\r\n}\r\n```\r\nPath seems to be correct: \"/Users/[...]/Library/Developer/CoreSimulator/Devices/[...]/MyApp.app/animated2.apng\"\r\nDebugger says \"image2\" is not nil and shows me amount of frames and resolution.\r\nBut it always breaks with \"EXC_BAD_ACCESS (code=2, ...)\" when I'm setting image2 as the image of APNGImageView.\r\n\r\nWhat am I doing wrong?\r\n\r\n\r\nEDIT:\r\nOkay, if I'm creating APNGItemView programmatically everything works fine. \r\nIs the following right for make it working with interface builder?:\r\n- Adding UIView to Storyboard\r\n- Setting custom class to \"APNGItemView\"\r\n- Creating an IBOutlet named \"apngImageView\" (in my case above)\r\n"}}