Oh, I see. How dumb I was!
But now I get this error
(main)> 2012-07-22 11:23:09.575 Brechoh[8970:ec03] items_controller.rb:23:in `viewDidLoad': undefined method `resizaableImageWithCapInsets' for #<UIImage:0x8522510> (NoMethodError)
2012-07-22 11:23:09.579 Brechoh[8970:ec03] *** Terminating app due to uncaught exception 'NoMethodError', reason: 'items_controller.rb:23:in `viewDidLoad': undefined method `resizaableImageWithCapInsets' for #<UIImage:0x8522510> (NoMethodError)
My code looks like this in viewDidLoad:
bg_image = UIImage.imageNamed('texture.png').resizaableImageWithCapInsets(UIEdgeInsetsMake(12, 12, 12, 12))
self.navigationBar.appearance.setBackgroundImage(bg_image, forBarMetrics:UIBarMetricsLandscapePhone)
In this very method I am also using adding a button to self.navigationItem. Oh yes, what's the difference between navigationItem and navigationBar?
Am I doing any mistake?
Thanks,
-- rodrigo alves vieira
> --
>
>
>