I managed to display a translucent view above all other views, including the keyboard, for the screen tint using this code:
int count = [[[UIApplication sharedApplication]windows]count];
[[[UIApplication sharedApplication] windows] objectAtIndex:count-1]addSubview:tintView];
Now I am facing a problem. My application uses MessageUI.framework to display the MFMessageComposeViewController, which allows the user to send a text message. Here I run into a problem.
When I execute the above code in this case (when the message message is displayed), it works correctly. The problem is that the user can no longer interact with the type of message below him. I set userinteractionenabled to NO on my tintView, but in this case it does not help.
Customizing the display of hue hidden in YES, however, allows interaction. He does something by changing this property, with which you can interact with the message view. Obviously, I want tintView to be visible.
I NSLogged the views at the very top of the UIWindow and found that the UIRemoteView (which I could find no information, but it seems that this displays the views in MessageUI.framework) is a view that does not get touched when the tintView is above it.
How can I allow interaction with the MFMessageComposeViewController even with another UIView displayed above it. Userinteractionenabled does not work in this case, but setting the view to hidden (which is not what I want) does.
source
share