magnifying glass displaying irrelevant content in UITextField

两盒软妹~` 提交于 2019-12-11 00:39:20

问题


I have developed an iOS app in Xamarin. I have few UITExtFields in UIScrollview. when user touch on UITetField, I am setting contentOffSet of scrollview so it can be visible when keyboard appears.

this.txtUsername.ShouldBeginEditing += delegate {
            scrl.SetContentOffset (new CoreGraphics.CGPoint (0, this.txtUsername.ShouldBeginEditing.Frame.Location.Y - 50),true);
            return true;
        };

This works fine. But when I long press on textField, Magnifying glass is appearing and displaying irrelevant detail. -Its displaying detail which is behind the scroll view.

Major problem is- even If I push new viewcontroller, which is SignupView controller, Its displaying Previous screens image in Magnifying glass. Its not problem with only this app, I have similar problem in other app too - which is also developed using Xamarin

I have uploaded video of my app for better understanding of problem I am facing here.

来源:https://stackoverflow.com/questions/40930220/magnifying-glass-displaying-irrelevant-content-in-uitextfield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!