Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
Xamarin.iOS version of the Netflix Style Grid for iOS -
posted

I took the liberty to re-rewrite the original sample in Objective-C to C# using Xamarin.iOS (https://github.com/claudiosanchez/Nuclios.Netflix)

The only problem is that I keep getting the following error when assigning my data models to the DataSource for the grid 

Nuclios_NetflixViewController.cs, line 78

_ds.Data = realData;

Getting the following exception:

Objective-C exception thrown.  Name: NSUnknownKeyException Reason: [<Nuclios_Netflix_NetflixData 0x1475de40> valueForUndefinedKey:]: this class is not key value coding-compliant for the key Category.

Parents
No Data
Reply
  • 40030
    Offline posted

    Hi Claudio, 

    Pretty cool!

    I didn't have a chance to run the project yet, however after a quick glance at the code, it looks like you're just missing an export attribute on your properties:

    public class NetflixMedia: NSObject
        {
            [Export("ImageUrl")]
            public string ImageUrl {
                get;
                set;
            }

            [Export("Title")]
            public string Title {
                get;
                set;
            }

            [Export("Genre")]
            public string Genre {
                get;
                set;
            }
        
        }

    That should do it. 

    One more thing, like i said i didn't get a chance to test it, but you have the IG.dll included with your project on github. I hope its the trial version! But could you remove it from the bin folder on github? 

    Thanks!

    -SteveZ

Children