小编Sin*_*sag的帖子

使用MVVMCross在iOS上实现搜索

我只是想知道是否有任何例子可以做到这一点?

所以我想要做的是用MVVCross实现一个搜索,现在不知道如何开始.任何关于正确方向的提示都会受到极大的关注.

值得一提的是,我的想法有点像......

我有一个视图,我有搜索栏.但我不是在该视图中搜索数据.所以在搜索时,我想显示一个新的表视图并搜索它.

我为表和控制器创建了一个单元格来显示它(只是usuall list视图的东西),但我现在仍然坚持使用搜索栏实现.

public partial class HomeView : MvxViewController
{
    public HomeView () : base ("HomeView", null)
    {
    }

    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 ()
    {
        base.ViewDidLoad ();
        if (RespondsToSelector(new MonoTouch.ObjCRuntime.Selector("edgesForExtendedLayout")))
            EdgesForExtendedLayout = UIRectEdge.None;
        RecommendedCollectionView.RegisterNibForCell(RecommededStationCollectionCell.Nib, RecommededStationCollectionCell.Key);
        var source = new MvxCollectionViewSource(RecommendedCollectionView, RecommededStationCollectionCell.Key);
        RecommendedCollectionView.Source = source;

        var set = …
Run Code Online (Sandbox Code Playgroud)

uisearchbar ios mvvmcross xamarin

1
推荐指数
1
解决办法
2339
查看次数

标签 统计

ios ×1

mvvmcross ×1

uisearchbar ×1

xamarin ×1