I have an error when I tried to create a UIImageView. Look at this code :
UIImage* backgroundPanel = [[UIImage imageNamed:@\"loginPanelBackground.png\"] resizabl
I had this problem until I found out that my cap inset argument to resizableImageWithCapInsets: was wrong — it didn't leave any un-capped area at all (you need at least 1x1 pixel not covered by a cap). So make sure that:
(insets.left + insets.right) < width
and
(insets.top + insets.bottom) < height