如何在iPhone和iPhone中制作多列表如图所示,为电子邮件合成它? [英] How to make multi-column table in iPhone & formate it for the email as shown in image?

查看:87
本文介绍了如何在iPhone和iPhone中制作多列表如图所示,为电子邮件合成它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找多列表,也想在电子邮件中发送该表。

Hi, I am looking for multi-column table and also want to send that table in email.

有没有可以帮助我的图书馆?

Is there any library which can help me ?

推荐答案

如果看到两种方法可以做到这一点,其中没有一种是开箱即用。

If see two methods to do this, none of which are "straight out of the box".

方法1.使用UIWebView,将你的html构建为字符串并加载它使用.. loadHTMLString 方法直接进入UIWEbView。通过这种方式,您可以处理html,并可以直接将相同的html写入电子邮件。说到这一点,它不是我会用的方法。 IOS,关于丰富的客户体验......和UIWebView是......好吧......网页视图...

method 1. Use a UIWebView, build your html as a string and load it right into the UIWEbView using the.. loadHTMLString method. this way, you have a handle on your html, and can directly write the same html to an email. having said this, its not the method that I would use. IOS, is about a rich client experience.. and UIWebView is... well.. a web view...

所以..方法2。

滚动您自己的自定义表格由Aravindhanarvi发布..然后当您想要发送电子邮件...将您的视图渲染为图像..并将该图像添加到您的电子邮件。

roll your own custom table as posted by Aravindhanarvi.. then when you want to send an email... render your view to an image.. and add that image to your email.

这里是将视图呈现为图像的代码..

here is the code to render a view as an image..

UIGraphicsBeginImageContext(webview.frame.size);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);

这篇关于如何在iPhone和iPhone中制作多列表如图所示,为电子邮件合成它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆