IOS-UIButton的文本与图片的布局

  • 设置文本和图片的布局
    http://www.cnblogs.com/oc-bowen/p/5851849.html
  • 简单的js 调用 OC
    http://blog.csdn.net/hj7jay/article/details/51798928
  • 字体 设置
    http://blog.csdn.net/csdnAaron/article/details/48370549
  • UIScrollView 停止滑动 减速
    http://blog.csdn.net/messageloop3/article/details/11250175
  • 手动下架的应用迅速恢复上架
    http://blog.csdn.net/codingfire/article/details/53183613
/**
 设置图片 分辨率 清晰

 @param image 图片
 @param reSize 大小
 @return 图片
 */
- (UIImage *)RightreSizeImage:(UIImage *)image toSize:(CGSize)reSize {
    if ([[UIScreen mainScreen]scale] == 2.0) {
        UIGraphicsBeginImageContextWithOptions(reSize, NO, 2.0);
    }else {
        UIGraphicsBeginImageContext(reSize);
    }
    [image drawInRect:CGRectMake(0, 0, reSize.width, reSize.height)];
    UIImage *reSizeImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return [reSizeImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}

你可能感兴趣的:(IOS-UIButton的文本与图片的布局)