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
Added support for iOS7 appearance. #51
Conversation
iOS 6 still uses the old appearance. Also supports setting barTintColor and tintColor. The buttons and text changes color to the tintColor.
You set the tintColor of the ReaderViewController.view instance. This sets the color of all the buttons. ReaderViewController *readerViewController = [[ReaderViewController alloc] initWithReaderDocument:document]; |
Cobola: I will have a look at why it's not working. |
Cobola: It works for me. Are you using this pull request? The original version of Reader (https://github.com/vfr/Reader) hasn't accepted this pull request yet. The fork at https://github.com/klofberg/Reader is the one that has the iOS7 support. |
it works fine in your sample project my project use xib ,my plist is like this in other code i use this method to support ios7 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) { I use the reader like this ReaderDocument *document = [ReaderDocument withDocumentFilePath:path password:phrase];
|
Use ReaderViewController.view.tintColor to set the tintColor.
Cobola: I can't reproduce your problem. I use the same method to detect iOS 7 as you do ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7). I have also tried setting the same values in plist as you have. |
Shows a back button instead of Done when contained in a navigation controller.
Allows for setting barTintColor and tintColor to change the look of the Reader.
Example:
This sets both the toolbar and pagebar background color. The buttons and the Done-button text automatically changes color to the tintColor of the ReaderViewController.
iOS 6 still uses the old appearance.