使用openssl命令行可以以人类可读的模式提取.pem证书中包含的所有信息; 那是:
openssl x509 -noout -in <MyCertificate>.pem -text
Run Code Online (Sandbox Code Playgroud)
使用openssl API提取此信息的合适步骤是什么?
问候,
以下代码:
listViewPopoverControllerOL = [[UIPopoverController alloc] initWithContentViewController:myBranchesListViewPage];
Run Code Online (Sandbox Code Playgroud)
使用iOS5在iPad2中产生以下崩溃.作为评论,我必须注意到相同的代码在iOS4.3中完美运行.
*** Terminating app due to uncaught exception 'NSGenericException', reason: 'The content view controller argument must be the root of its associated view controller hierarchy.'
*** First throw call stack:(0x370cb8bf 0x35eaa1e5 0x370cb7b9 0x370cb7db 0x306f378d 0x306f0db9 0x5692d 0x567d1 0x37025435 0x303499eb 0x303499a7 0x30349985 0x303496f5 0x3034a02d 0x3034850f 0x30347f01 0x3032e4ed 0x3032dd2d 0x35bdfe13 0x3709f553 0x3709f4f5 0x3709e343 0x370214dd 0x370213a5 0x35bdefed 0x3035c743 0x2871 0x2830) terminate called throwing an exception
Run Code Online (Sandbox Code Playgroud)
其中"myBranchesListViewPage"定义为:
MyBranchesListView_iPad* myBranchesListViewPage
Run Code Online (Sandbox Code Playgroud)
并且"MyBranchesListViewPage"定义为:
MyBranchesListView_iPad : UIViewController<UITableViewDelegate, UITableViewDataSource, MyDetailParserDelegate, UISplitViewControllerDelegate>
Run Code Online (Sandbox Code Playgroud)
我不知道为什么我在iOS5(Xcode 4.2)中遇到这个问题但不是iOS4.3(Xcode …
当在iPhone4和iPad2中执行"presentOpenInMenuFromRect"时(我在iOS 4.3.5中运行),我观察到不同的行为.在iPad2中,它会显示一个下拉列表,其中包含可以打开特定文件的所有应用程序,并且工作正常; 但是,在iPhone4中它也会显示一个下拉列表(也可以正常工作),但是在下拉列表的末尾有一个"取消"按钮,它似乎处于非活动状态.
在iPad2中,这个问题不会发生,因为没有出现"取消"按钮,只出现下拉列表,当我点击与下拉列表不同的另一个区域时,此列表关闭; 这是理想的行为.
我的意思是说iPhone/iPhone4中的"取消"按钮似乎处于非活动状态:当我触摸它时,没有任何反应!好吧,更具体地说,如果我在短时间内或时间内多次触摸它,那么,比较早,按钮"取消"似乎响应(它将颜色从灰色变为蓝色)然后下拉列表真的很封闭; 这是理想的行为.
我通过以下方式使用"presentOpenInMenuFromRect":我已经实现了一个"保存"按钮,默认情况下是隐藏的; 但是,在方法" - (void)webViewDidFinishLoad:(UIWebView*)webView"我检测到URL的"路径扩展",如果它有".pdf"扩展名,那么我显示"保存"按钮; 那是:
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
if ([[[myWebViewOL.request.URL.absoluteString pathExtension] lowercaseString] isEqualToString:@"pdf"])
{
saveFile0L.hidden = NO;
}
}
Run Code Online (Sandbox Code Playgroud)
与"保存"按钮(saveFile0L)相关的"动作"是以下方法"saveFile":
[saveFile0L addTarget:self action:@selector(saveFile) forControlEvents:UIControlEventTouchUpInside];
Run Code Online (Sandbox Code Playgroud)
其中"saveFile"具有以下代码:
- (void) saveFile
{
//Do not worry about "FileManager" is only a singleton class
//which I have defined in order to implement some common methods
//and one of them is "saveFile:(UIWebView*) withUIView:(UIView*)
[[FileManager sharedInstance] saveFile:myWebView withUIView:self.view];
}
Run Code Online (Sandbox Code Playgroud)
并且"saveFile:(UIWebView*)myWebView withUIView:(UIView*)self.view"具有以下代码:
- (void) saveFile:(UIWebView*)webView withUIView:(UIView*)view
{
NSString* fileName = …Run Code Online (Sandbox Code Playgroud)