无法从XCode 9导出Apple ID(Cannot export Apple ID from Xcode 9)
我试图从XCode 9内导出我的Apple ID。
出现的错误消息说:
无法与助手应用程序通信。
再次尝试您的操作。 如果失败,请退出并重新启动应用程序,然后重试。
我确实重新启动了一切,并重新创建了我的证书 - 没有运气。
我的操作系统是macOS High Sierra。
知道任何人如何解决这个问题?
I'm trying to export my Apple ID from within Xcode 9.
The error message that appears says:
Couldn’t communicate with a helper application.
Try your operation again. If that fails, quit and relaunch the application and try again.
I did restart everything and also recreated my certificate - without luck.
My OS is macOS High Sierra.
How to solve this?
原文:https://stackoverflow.com/questions/49632898
满意答案
你的共同的孩子模态组件如下
import {Component,Input, ViewChild} from '@angular/core'; import { ModalDirective } from 'ngx-bootstrap'; @Component({ selector: 'common-modal', template: ` <div bsModal #childModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title pull-left">{{title}}</h4> <button type="button" class="close pull-right" aria-label="Close" (click)="hideChildModal()"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <ng-content select=".modal-body"> </ng-content> </div> <div class="modal-footer"> <div class="pull-left"> <button class="btn btn-default" (click)="hide()"> Cancel </button> </div> </div> </div> </div> </div> `, }) export class CommonModalComponent { @ViewChild('childModal') public childModal:ModalDirective; @Input() title:string; constructor() { } show(){ this.childModal.show(); } hide(){ this.childModal.hide(); } }
在父组件中使用子组件将如下所示
import {Component, ViewChild, NgModule,ViewContainerRef} from '@angular/core' import { BrowserModule } from '@angular/platform-browser'; import { ModalDirective,ModalModule } from 'ngx-bootstrap'; import {CommonModalComponent} from './child.modal'; @Component({ selector: 'my-app', template: ` <button type="button" class="btn btn-primary" (click)="childModal.show()">Open modal</button> <common-modal #childModal [title]="'common modal'"> <div class="modal-body"> Hi heloo </div> </common-modal> `, }) export class AppComponent { @ViewChild('childModal') childModal :CommonModalComponent; constructor(private viewContainerRef: ViewContainerRef) { } }
使用上面的代码,你可以有一个单独的公共模式对话框,可以重复使用,以便您的页眉和页脚保持不变,您可以使用Content-Projection来改变模式对话框的主体。
Your common child modal component will be as below
import {Component,Input, ViewChild} from '@angular/core'; import { ModalDirective } from 'ngx-bootstrap'; @Component({ selector: 'common-modal', template: ` <div bsModal #childModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title pull-left">{{title}}</h4> <button type="button" class="close pull-right" aria-label="Close" (click)="hideChildModal()"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <ng-content select=".modal-body"> </ng-content> </div> <div class="modal-footer"> <div class="pull-left"> <button class="btn btn-default" (click)="hide()"> Cancel </button> </div> </div> </div> </div> </div> `, }) export class CommonModalComponent { @ViewChild('childModal') public childModal:ModalDirective; @Input() title:string; constructor() { } show(){ this.childModal.show(); } hide(){ this.childModal.hide(); } }
Using the child component in your parent component will look as below
import {Component, ViewChild, NgModule,ViewContainerRef} from '@angular/core' import { BrowserModule } from '@angular/platform-browser'; import { ModalDirective,ModalModule } from 'ngx-bootstrap'; import {CommonModalComponent} from './child.modal'; @Component({ selector: 'my-app', template: ` <button type="button" class="btn btn-primary" (click)="childModal.show()">Open modal</button> <common-modal #childModal [title]="'common modal'"> <div class="modal-body"> Hi heloo </div> </common-modal> `, }) export class AppComponent { @ViewChild('childModal') childModal :CommonModalComponent; constructor(private viewContainerRef: ViewContainerRef) { } }
Using the above code you can have a separate common modal dialog which can be reused, so that your header & footer remains the same and you can use Content-Projection to use change the body of the modal dialog.
相关问答
更多Angular2:模态对话框不捕获键事件(Angular2: Modal Dialog does not catch key-events)
角度2.0和模态对话框(Angular 2.0 and Modal Dialog)
如何在对话框中确定它是否由其父项打开为模态或非模态对话框?(How determine within a dialog form if it was opened as a modal or non-modal dialog by its parent?)
如何在Angular 2中获得具有模态对话条件的元素?(How to get an element with condition of modal dialog in Angular 2?)
顶级模态对话框,涵盖整个角度应用(top-level modal dialog to cover whole angular application)
如何在Angular 2及更高版本中实现模态对话框(How to implement Modal Dialog in Angular 2 and above)
Angular2模态对话框(Angular2 modal dialog)
使用Angular 2创建独立模式对话服务(Create standalone modal dialog service with Angular 2)
如何解除角度js中的所有模态对话框(How can dismiss all modal dialog in angular js)
如何使用模态对话框Angular 2编辑ngxdatatable(How to edit ngxdatatable using modal dialog Angular 2)
相关文章
更多微信将推指纹支付 "指付通"会与Touch ID整合吗
MongoDB _id和ObjectId详解
solr required field: id
js 通过td的id值 如何拿到tr的id值?
html中一个div的id是“1:222”的话,怎么利用id给它定义css啊?
mysql in根据查询id排序
配置solr自动生成id
别拿Hadoop map key当id使
使用TabPanel时,如果两个页面存在相同的id。
solr4.0 id 自动生成
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!