iOS Question How to use UIModalPresentationStyle.popover

tufanv

Expert
Licensed User
Longtime User
Hello,

There is an old code in the from which is depreceated:
B4X:
Sub showpopup(Parent As Page, dialog As Page)
    Dim no As NativeObject = dialog
    no.SetField("modalTransitionStyle",0)

    Dim no2 As NativeObject = Parent
    no2.RunMethod("presentModalViewController:animated:", Array(dialog, True))
End Sub

The new one is I think this one :

How can I use this popover style with nativeobject?

Thanks
 

tufanv

Expert
Licensed User
Longtime User
I think I misunderstood. What I need to do is, the code works perfect but it shows the whole page as modal. I need to show little information with modal so maybe I need %30 of the page to appear from bottom. Is there a view to achieve this?
 
Upvote 0
Top