Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'showsPageRange' is deprecated

I have this warning "'showsPageRange' is deprecated: first deprecated in iOS 10.0 - Pages can be removed from the print preview, so page range is always shown." that I would like to remove. This is my code

printController.showsPageRange = YES;

Since default value for showsPageRange is false, and in my code it's set to true, I don't know if I can safely just remove this line.

I just don't understand this message "Pages can be removed from the print preview, so page range is always shown." It says that page range is always shown, ok, but what does the option to remove pages from the print preview has to do with that?

like image 237
Dee Fun Avatar asked Dec 03 '25 00:12

Dee Fun


1 Answers

Because page range is always shown, there is no need for this property showsPageRange anymore. It is safe to remove this line from your code.

like image 89
Vladimir Grigorov Avatar answered Dec 04 '25 12:12

Vladimir Grigorov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!