Hi,

Im using Monotouch Dialog and was using it since IOS 5 working perfect.

I just tried to update everything to IOS 7 and I realize that there is a 
strange behavior when pushing views. Im using background image to the views 
(all DialogViewControllers inherits from a Base DialogViewController that 
implements the background image).

If I remove the background image code then everything works fine but If I keep 
that code then when I push the DialogViewController then for an instant it 
looks like the new view overlaps the current one so it looks horrible. If I 
disable the animation in the "PushViewController" then everything is fine but 
the animation is where the strange behavior happens.

The code of the Base DialogViewController that implements the background stuff 
is the following:

using System;
using MonoTouch.Dialog;
using MonoTouch.UIKit;

namespace NewApp.iOS.UI.Base
{
    public partial class BaseDialogViewController : DialogViewController
    {
        public BaseDialogViewController () : base(null,true)
        {
        }

         public override void LoadView ()
        {
            base.LoadView ();

            TableView.BackgroundView = null;
            TableView.BackgroundColor = UIColor.Clear;

            if(this.NavigationController != null)
                
this.NavigationController.NavigationBar.SetBackgroundImage(UIImage.FromFile("Images/navbar_bg.png"),UIBarMetrics.Default);

            var background = UIImage.FromFile ("Images/bg_pattern2.png");

            if(ParentViewController != null)
            {
                ParentViewController.View.BackgroundColor = 
UIColor.FromPatternImage(background);
            }else{
                View.BackgroundColor = UIColor.FromPatternImage(background);
            }

        } 
     }
 }



Any clue why this happens in IOS7? In IOS6 works perfect!!.


Thanks a lot and appreciate any advice.

Alejandro
_______________________________________________
MonoTouch mailing list
MonoTouch@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to