问题描述
我正在跟踪mvvmcross tutorial,其中说:
这将生成三个类:
- TipView.cs
- TipView.designer.cs
- TipView.xib
当我添加新的UIViewController时
namespace TipCalc.iOS.Views
{
[Register("UniversalView")]
public class UniversalView : UIView
{
public UniversalView()
{
Initialize();
}
public UniversalView(RectangleF bounds) : base(bounds)
{
Initialize();
}
void Initialize()
{
BackgroundColor = UIColor.Red;
}
}
[Register("UIViewController1")]
public class UIViewController1 : UIViewController
{
public UIViewController1()
{
}
public override void DidReceiveMemoryWarning()
{
// Releases the view if it doesn't have a superview.
base.DidReceiveMemoryWarning();
// Release any cached data,images,etc that aren't in use.
}
public override void ViewDidLoad()
{
View = new UniversalView();
base.ViewDidLoad();
// Perform any additional setup after loading the view
}
}
}
将xib文件添加到与View Controller链接的正确方法是什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)