Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes when appearing, Plus screen size #8

Open
sarambasich opened this issue Feb 25, 2016 · 5 comments
Open

Crashes when appearing, Plus screen size #8

sarambasich opened this issue Feb 25, 2016 · 5 comments

Comments

@sarambasich
Copy link

I have a set up like so:

img_0028

But I repeatably/consistently get crashes on this line, using my iPhone 6 Plus and 6s Plus simulator:

d[i] = UInt8(255)

screen shot 2016-02-24 at 10 28 13 pm

Something weird happening to the CFMutableDataRef? Size not expected?

It's worth nothing I took that screenshot of the UI in the crashed state.

@MrMatthias
Copy link
Owner

Currently the size has to be fixed or the buffers need to be adjusted

@sarambasich
Copy link
Author

Thanks for the quick response! Can you elaborate? Does that mean I need to set a specific width by height size to the color picker area?

@MrMatthias
Copy link
Owner

yes, setting a width and height constraint works.

@doubleforte
Copy link

I can't seem to set a w/h constraint that works for Plus size as well as regular size. They are different sizes, so they need different values...but they are the same size class so I can't use class sizes to set different values.

I tried dynamically adjusting the width constraint in viewDidLoad(), but that didn't seem to work.

You said "size has to be fixed or the buffers need to be adjusted"...how can I adjust the buffers?

This is a great color picker, but if it explodes on some phones, then that's a dealbreaker. :(

Please help?

Thanks
brian

@sarambasich
Copy link
Author

Also having issues with Plus size again. Adding it as a custom class in a storyboard causes a crash. Adding in code doesn't crash. Instead, moving the finger causes graphical glitches, even with set width/height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants