使用此链接生成用于推送通知的pem文件,但我无法理解以下步骤...
在服务器上安装SSL证书和密钥
您应该在运行提供程序代码的服务器计算机上安装先前获得的SSL分发证书和私有加密密钥,并从中与沙箱或生产版本的APN连接.为此,请完成以下步骤:
打开Keychain Access实用程序,然后单击左窗格中的"我的证书"类别.
找到要安装的证书并公开其内容.您将看到证书和私钥.
选择证书和密钥,选择"文件">"导出项目",然后将其导出为个人信息交换(.p12)文件.
以Ruby和Perl等语言实现的服务器通常能够更好地处理个人信息交换格式的证书.要将证书转换为此格式,请完成以下步骤:
在KeyChain Access中,选择证书并选择"文件">"导出项目".选择"个人信息交换(.p12)"选项,选择保存位置,然后单击"保存".
启动终端应用程序并在提示符后输入以下命令:openssl pkcs12 -in CertificateName.p12 -out CertificateName.pem -nodes.
将.pem证书复制到新计算机并将其安装在适当的位置.
ssl-certificate push-notification apple-push-notifications ios
我使用Dompdf生成一个html2pdf,我的代码是
$html='<div>--content of pdf--</div>';
require_once('resources/dompdf/dompdf_config.inc.php');
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$output = $dompdf->output();
$dompdf->stream("transaction.pdf");
Run Code Online (Sandbox Code Playgroud)
我的pdf现在成功生成了我想在pdf的标题中添加图像所以任何人都可以告诉我如何为Dompdf插入页眉和页脚,特别是在哪里放置标题代码?
当我在nsmutabledictionary中设置值时,然后给出错误显示在下面的图像....

这里是我在nsmutabledictionary中的setvalue代码
NSMutableArray *countArray=[[NSMutableArray alloc] init];
for (int i=0;i<artistName.count;i++)
{
int count=0;
NSMutableDictionary *dir1=[artistName objectAtIndex:i];
NSString *artist1=[dir1 objectForKey:@"SONG_ARTIST"];
for (int j=0;j<CurrentPlayingSong.count;j++)
{
NSDictionary *dir2=[CurrentPlayingSong objectAtIndex:j];
NSString *artist2=[dir2 objectForKey:@"SONG_ARTIST"];
if ([artist2 isEqualToString:artist1])
{
count++;
}
}
NSString *Size=[[NSString alloc] initWithFormat:@"%d",count];
[dir1 setObject:Size forKey:@"SIZE"];
[countArray addObject:dir1];
}
return countArray;
Run Code Online (Sandbox Code Playgroud)