我正在使用此代码在屏幕上绘制触摸路径,但随着屏幕尺寸的增加,触摸路径不会保持稳定。有人可以提出建议吗?
在6S上绘制的路径
在4S上绘制的路径
$response = $facebook->api("/me/feed", 'POST',
array(
'access_token=' => $access_token,
'message' => 'Testing multi-photo post!',
'attached_media[0]' => '{"media_fbid":"1002088839996"}',
'attached_media[1]' => '{"media_fbid":"1002088840149"}'
)
);
答案 0 :(得分:0)
这可能是因为在4S屏幕上是2x,而在6S屏幕是3x。由于你创建图像上下文的方式,图像没有考虑到这一点,并且总是有1倍大小。
尝试使用UIGraphicsBeginImageContextWithOptions(self.subImageView.frame.size, false, 0.0)
代替UIGraphicsBeginImageContext(self.subImageView.frame.size)