I want to remove the .png files that I used for my ios app and add .svg files instead of those. How can I do in this in Xcode.I want to use svg images for backgrounds and all icons,buttons.
Thanks
I want to remove the .png files that I used for my ios app and add .svg files instead of those. How can I do in this in Xcode.I want to use svg images for backgrounds and all icons,buttons.
Thanks
In short: you'll have to convert to PDF with a specific size and Xcode (6+) will help you by generating the corresponding @1x, @2x and @3x PNGs at compile time. The reason why PDF is used is because PDF contains size information which is used as the pixel size for the @1x png. There's no native runtime support for it yet, though I've heard rumors of libraries that can do that.
See this answer: https://stackoverflow.com/a/25804358/3099609
And the referenced blog post: http://martiancraft.com/blog/2014/09/vector-images-xcode6/
YES !!!
IOS safari has svg support since version 3.1 http://caniuse.com/svg
It is also my understanding that ios supports using svg with an image tag http://phrogz.net/SVG/svg-via-img.html
IE
Generally speaking for compatibility with earlier browsers inline svg should be delivered in an xhtml document like this one.
SVG files should be delivered with a mimi type of "image/svg+xml" generally configured on the server already but svg can be delivered with a php wrapper to have the correct mimi type, if the server is not upto date on mimi types..