I am getting an exception on my second line of code here. I am calling this code from within ViewDidLoad. _assetURLs[page] (in this case page is 0), is returning a single assetURL that exists and was already retrieved.
UIImage img;
img = new UIImage(new MonoTouch.CoreImage.CIImage(_assetURLs[page]));
Any ideas?
Here is the exception: (the exception is happening because of --> new UIImage(...) and not because of new MonoTouch.CoreImage.CIImage(_assetURLs[page])
{MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[UIImage initWithCIImage]: unrecognized selector sent to instance 0x107a1fc0 at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:IntPtr_objc_msgSend_IntPtr (intptr,intptr,intptr) at MonoTouch.UIKit.UIImage..ctor (MonoTouch.CoreImage.CIImage ciImage) [0x00027] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIImage.g.cs:376 at ScrollViewPageViewExample.Viewer.LoadPageContent (Int32 page) [0x0002e] in /Users/user1/Dropbox/Dev/ScrollViewPageViewExample/ScrollViewPageViewExample/Viewer.cs:148 }