Weather Icons of different Sizes in OpenWeatherMap

Ranbijay picture Ranbijay · Dec 24, 2015 · Viewed 8.7k times · Source

I am using OpenWeatherMap to get the weather data for my app.With the response data openweather is sending a weather icon code and they have a specific icon for that code which is very small ,but i want a bigger icon to use in my home page.Is there any alternative to get a bigger Icon from OpenWeatherMap.

Thanks in Advance.

Answer

Rashwan L picture Rashwan L · Dec 24, 2015

Check this page to get all the icons (in @1x, @2x and @3x). Download them and add them to your assets and the system will automatically get the right one for you.

The you could increase them in your UIImageView if you want since they are png, I don´t think you will decrease the quality.

// Parameters x, y, width, height
var imageView = UIImageView(frame: CGRectMake(0, 0, 100, 100));