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
  • 0
    Offline posted

    A Xamarin.iOS version of the XCode-based sample "Creating a Netflix style iOS Grid

    Innovative Functionality Meets iOS Familiarity

    Take advantage of a powerful API that is familiar to all iOS developers. You can use NucliOS controls in native iOS projects built with Objective C and Xcode. You can even build in C#; with Xamarin.ioS support, NucliOS includes final MonoTouch bindings for all of our iOS controls.

    And so the journey begins. Steve has done a great job of explaining in detail the implementation, so I won't bore you with the details. Instead, I will highlight what things to keep in mind when "translating" code developed with XCode and Obj-C to the stuff dreams are made of (C# and Xamarin.iOS).

    // Obj-C Implementation of the model 
    
    @interface NetflixData : NSObject
           @property (nonatomic, retain)NSString* category;
           @property (nonatomic, retain)NSMutableArray* media;
           @property (nonatomic, assign)CGFloat scrollPosition;
    @end 

    thanks for iOS
Children
No Data