iPhone: I resize a contact's image, but when that person is calling, the picture isn't scaled to the screen size

对着背影说爱祢 提交于 2019-12-08 07:50:45

问题


We have an app that resizes iPhone contact pictures and then saves them back in the address book.

When Jim has a normal 1200 x 1600 picture, and he is calling my phone, the picture gets correctly scaled within the iPhone screen so that it shows the whole picture.

When I resize this image to a 320 x 420-something, and save it in the address book, the picture no longer gets scaled, but gets 'blown up' so that I see the center of the picture.

Is this someone has experienced before? Is it a coding error, or a bug in the iPhone?

Thanks!


回答1:


Apparently this is a bug in the iPhone. A lot of users have experienced that when a picture gets updated through the API, it won't scale correctly.

I ended up just resizing the pictures small enough to be displayed in the top right corner of the screen, instead of expecting them to be resized when someone is calling.



来源:https://stackoverflow.com/questions/4334926/iphone-i-resize-a-contacts-image-but-when-that-person-is-calling-the-picture

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!