Hi,

My app uses gradientcolors as BackgroundColor for its MonoTouch.Dialog
elements.

These colors are built with UIColor.FromPatternImage(gradientImage) and
kept in memory.

When I show a table with elements using a gradientcolor from the memory
copy, I get a varying number of

<Error>: CGGradientCreateWithColors: invalid color space

errors. The number of errors is usually equal to the
number of elements, sometimes, in longer lists, it is less than the
number of elements.

The cells in these grouped tables are hard coded, i.e. they are always
identical and are not retrieved from a database or so.

I am not creating any gradients when populating the RootElement, just
adding elements and setting their backgroundColor to the precreated
gradientcolor.

I get these errors only when showing tables that use
UITableViewStyle.Grouped

Changing the style into UITableViewStyle.Plain gets rid of the errors,
changing back to UITableViewStyle.Grouped makes them reappear.

Note that the cell background colors are exactly as I want them, both in
Plain and in Grouped mode.

I'd ignore these errors while the app behaves as desired. But generating
errors whenever one navigates a menu might fill the device logs way to
fast, and maybe Apple wouldn't like it either when submitting the App.

Any ideas, any one?


Guido

--
Death is nature's way of saying `Howdy'.

http://vanhoecke.org ... and go2 places!
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to