iOS Question A problem using Activity View Controller on iPad.

PierPaduan

Active Member
Licensed User
Longtime User
Hi everyone,
I use Activity View Controller in my app to send files via e-mail.
Using iPhone (iOS 8.4.1) everything works fine, but if I use iPad (iOS 9.3.5) the avc.show(...) produce the following log and the Activity View Controller doesn't appear.

I tried to use the Avc example by Erel (modified only a bit). On iPhone all OK. On iPad the Log is the same and the Avc appear on the Page Title in the top centre of the display, but it's very thin and the icons of the apps are not visible. I can see the icons only if I turn 90 degrees the device. See the two attached pictures.

I upload the simple example project that produce this problem.

Please, can someone help me to fix this?
Thank you very much.

Application_Start
Application_Active
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x17e6bf80 V:[UIView:0x17e674a0(>=44)]>",
"<NSLayoutConstraint:0x17e6bda0 UIView:0x17e674a0.height == UIView:0x17e67350.height>",
"<NSLayoutConstraint:0x17e6c990 _UIAlertControllerView:0x17d8e6d0.height == UIView:0x17e67350.height>",
"<NSLayoutConstraint:0x17e84880 _UIAlertControllerView:0x17d8e6d0.height == UIView:0x17d71240.height>",
"<NSLayoutConstraint:0x17d89ac0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x17d71240(21)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x17e6bf80 V:[UIView:0x17e674a0(>=44)]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x17d86250 V:[_UIDimmingKnockoutBackdropView:0x17d94d40(>=44)]>",
"<NSLayoutConstraint:0x17e6bda0 UIView:0x17e674a0.height == UIView:0x17e67350.height>",
"<NSLayoutConstraint:0x17d86600 _UIDimmingKnockoutBackdropView:0x17d94d40.top == UIView:0x17e674a0.top>",
"<NSLayoutConstraint:0x17e6c990 _UIAlertControllerView:0x17d8e6d0.height == UIView:0x17e67350.height>",
"<NSLayoutConstraint:0x17e84880 _UIAlertControllerView:0x17d8e6d0.height == UIView:0x17d71240.height>",
"<NSLayoutConstraint:0x17ea8360 _UIDimmingKnockoutBackdropView:0x17d94d40.bottom == UICollectionView:0x18940a00.bottom>",
"<NSLayoutConstraint:0x17e61610 UIView:0x17e674a0.bottom == UICollectionView:0x18940a00.bottom>",
"<NSLayoutConstraint:0x17d89ac0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x17d71240(21)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x17e61610 UIView:0x17e674a0.bottom == UICollectionView:0x18940a00.bottom>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x17e6c0c0 V:[UIView:0x17e675f0(>=44)]>",
"<NSLayoutConstraint:0x17e6bfb0 V:|-(0)-[UIView:0x17e675f0] (Names: '|':UIView:0x17e674a0 )>",
"<NSLayoutConstraint:0x17e6c040 V:[UICollectionView:0x18940a00]-(0)-| (Names: '|':UIView:0x17e675f0 )>",
"<NSLayoutConstraint:0x17e6bda0 UIView:0x17e674a0.height == UIView:0x17e67350.height>",
"<NSLayoutConstraint:0x17e6c990 _UIAlertControllerView:0x17d8e6d0.height == UIView:0x17e67350.height>",
"<NSLayoutConstraint:0x17dacb20 _UIAlertControllerView:0x17d8e6d0.height == UIView:0x17d71240.height>",
"<NSLayoutConstraint:0x17de1980 UIView:0x17e674a0.bottom == UICollectionView:0x18940a00.bottom>",
"<NSLayoutConstraint:0x17d89ac0 'UIView-Encapsulated-Layout-Height' V:[UIView:0x17d71240(21)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x17e6c0c0 V:[UIView:0x17e675f0(>=44)]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
 

Attachments

  • Avc.zip
    76.4 KB · Views: 235
  • AvcThinOniPad.png
    AvcThinOniPad.png
    280.9 KB · Views: 265
  • AvcOniPadRotated90degrees.png
    AvcOniPadRotated90degrees.png
    252.7 KB · Views: 273
Top