-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
How to capture screenshot of JotView ? currently black screen appears in screenshot #9
Comments
Is the JotView full screen? or only part of the screen? the exportImageTo: method will export the entire JotView but won't export any surrounding views or subviews. |
I am drawing everything in JotView and it covers 90% of the screen, but When i export image, then only half screen appears in screenshot. Please take note that my app is in landscape mode. half screen of JotView is cut in screenshot. I have attached screenshot, which is the output of exportImageTo: method.
Even in your example, it is not working. In your example just change orientation from portrait to landscape and run your example and then draw line in whole screen and then save. you will notice that right side part is not coming in screenshot |
I am trying to debug below function which is in JotView.m file
I think that function is taking screenshot of jotview, but I am not getting success |
I also tried in your example by changing orientation of app from portrait to landscape but in your example it is also not working. |
Hello, I solved the problem :) I changed in #import "UIScreen+PortraitBounds.h" file But I am getting another problem and I am posting another issue :) Thanks |
glad you got the other saving issue working! I'd be interested to see what you changed in UIScreen+PortraitBounds.h - if you submit a pull request that'd be awesome :) |
Sure. What I did is just comment below code in PortraitBounds.m file and it solved my problem :) |
Hello,
I want to capture screenshot of JotView. I have added JotView’s instance in another UIView and I want to capture screenshot but I get black screen. I have used below code.
My app is in landscape mode
Then I tried your below code for saving as UIImage, but it capture only half screen(not even half) and again my app is in landscape mode
Any idea how to capture screenshot of JotView ?
Thanks
The text was updated successfully, but these errors were encountered: