enter image description here After clicking on AddPhoto enter image description here
Observe while slidingdown controller cancel, newcontact and done disappears.
enter image description here

var contact = new CNMutableContact
            {
                // Given and family names.
                FamilyName = participant.LastName,
                GivenName = participant.FirstName,
                //Note = participant.Note,
                OrganizationName = participant.Company,

            };
            if (!string.IsNullOrEmpty(participant.IconUrl))
            {
                NSUrl url = new NSUrl(participant.IconUrl);
                UIImage image = UIImage.LoadFromData(NSData.FromUrl(url));
                NSData data = image.AsPNG();
                contact.ImageData = data;
            }
       var contactViewController = CNContactViewController.FromNewContact(contact);

            contactViewController.Delegate = this;

In this section we add the contact with the existing data. And then adding the contactview controller as a present view controller.

var nc = new UINavigationController(contactViewController);
            this.PresentViewController(nc, true, () => {
            });
1

There are 1 best solutions below

8
On

Assuming you are running this on a later version that IOS 8 , Swift now has the ability to enable disable scrolling of the navigation bar view . (If we are talking about the same thing.) . I thinkn the problem lies in your navigation controller instead of the above code .

You can use self.navigationController?.hidesBarsOnSwipe = false

to disable the hiding of the navigation bar on scrolling and swipping , although This requires that your ViewController is embedded in a NavigationController. All child VC of the NavigationController will inherit this behaviour, so you might want to enable/disable it in viewWillAppear.

You could also disable this in your storyboard by setting the navigation controller -> shownavigationbar

storyboard Hierarchy Attribute section of the navigation controller