UINavigationBar Image Issue

Hi, Everyone.


I have an issue I can't seem to figure out. I have created a custom UINavigationBar background image and sized it at 320x64. Xcode keeps tiling the image. Why does it tile the image if it is the correct size?

Replies

Well, I fixed the tiling issue by using : UINavigationBar.appearance().setBackgroundImage(UIImage(named: "image")!.resizableImageWithCapInsets(UIEdgeInsetsMake(0, 0, 0, 0), resizingMode: .Stretch), forBarMetrics: .Default)


However, now the image is blurry. I just can't seem to win.