watson-developer-cloud / visual-recognition-coreml

Classify images offline using Watson Visual Recognition and Core ML
Apache License 2.0
490 stars 77 forks source link

Fixing CoreML Vision Simple crash on iPad when opening action sheet. #46

Closed craigkj312 closed 5 years ago

craigkj312 commented 5 years ago

Tapping the camera button in CoreML Vision Simple when running on an iPad would cause the app to crash because the action sheet had nothing to attach to. This adds a small block to check if the action sheet has an attach point and if it doesn't it adds one in the middle of the screen.