无法从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.
相关问答
更多-
我是那篇文章的原作者,抱歉延迟,也许还不算太晚:) 1)不太清楚你的意思2)我已经更新了答案,可以一次显示多个模态 。 The following code import { Component, ViewChild, Input } from '@angular/core'; @Component({ selector: 'app-modal', template: `
角度2.0和模态对话框(Angular 2.0 and Modal Dialog)[2019-07-11]
这是一个非常好的例子,说明如何在GitHub的Angular2应用程序中使用Bootstrap模式。 它的要点是可以将bootstrap html和jquery初始化包装在组件中。 我创建了一个可重用的modal组件,允许您使用模板变量触发打开。Form类具有Modal属性: 您可以使用此属性来确定是否已以模态方式显示从方法或属性获取的表单。 The Form class has a Modal property: You can use this property to determine whether a form that you have obtained from a method or property has been displayed modally.如何在Angular 2中获得具有模态对话条件的元素?(How to get an element with condition of modal dialog in Angular 2?)[2022-03-07]
所以要回答我自己的问题,我不得不使用@ViewChildren而不是@ViewChild 。 @ViewChildren注解将为你的变量分配一个QueryList对象,让你访问你需要的元素(我使用.toArray()来获取元素数组,在这种情况下,它将只是一个)。 说到更改检测问题,我得到了这个答案,使用ngAfterViewChecked()方法,我可以实现我需要的向下滚动。 So to answer my own question, I had to use @ViewChildren instead o ...有几种方法可以做到这一点。 由于模态本身就是服务,因此您可以直接从服务中调用open。 或者,该服务可以发布可以监听的事件并触发登录页面。 如果你真的想要观看一个特定的变量(因为它可能会从不同的地方更改),你可以在$ rootScope上设置$ watch然后调用open。 There are several ways you can do this. Since the modal is a service itself, you could really just call open directly ...你的共同的孩子模态组件如下 import {Component,Input, ViewChild} from '@angular/core'; import { ModalDirective } from 'ngx-bootstrap'; @Component({ selector: 'common-modal', template: `Angular2模态对话框(Angular2 modal dialog)[2023-07-21]
我有一个类似的问题,我通过在我的根模块组件中添加一个模态,并在我的应用程序中提供ModalService来解决它。 ModalService用作事件调度程序,用于调度模态事件。 仅使用签名(为了易于理解,实现并不那么难): @Injectable() export class ModalService{ public registerModal(name:string, onPop:()=>void):void; public popModal(name:string):void; } 这 ...您可以在应用程序中创建单独的模块,以便使用组件,服务,指令处理某些功能......最后,您可以将模块注入主(根)模块并开始使用类似第3部分库。 处理该案例的精彩教程就在这个LINK上 。 I figured out how to create a simple dialog box with angular 2 service. The main concept is to programmatically create an overlay then attach its hostView to appl ...用$ uibModalStack替换$ modalStack 即$uibModalStack.dismissAll() Replace $modalStack with $uibModalStack i.e. $uibModalStack.dismissAll()选择行进行编辑时,您可能需要使用editingData修补EditOfficeForm formGroup。 像这样的东西: this.EditOfficeForm.patchValue(this.editingData); When a row is selected for edit you probably have to patch the EditOfficeForm formGroup with editingData. Something like that: this.EditOffice ...相关文章
更多- 微信将推指纹支付 "指付通"会与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 自动生成
最新问答
更多- 在ios 7中的UITableView部分周围绘制边界线(draw borderline around UITableView section in ios 7)
- Java中的不可变类(Immutable class in Java)
- 寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
- linux只知道文件名,不知道在哪个目录,怎么找到文件所在目录
- Actionscript:检查字符串是否包含域或子域(Actionscript: check if string contains domain or subdomain)
- 懒惰地初始化AutoMapper(Lazily initializing AutoMapper)
- 使用hasclass为多个div与一个按钮问题(using hasclass for multiple divs with one button Problems)
- Windows Phone 7:检查资源是否存在(Windows Phone 7: Check If Resource Exists)
- EXCEL VBA 基础教程下载
- RoR - 邮件中的动态主体(部分)(RoR - Dynamic body (part) in mailer)
- 无法在Google Script中返回2D数组?(Can not return 2D Array in Google Script?)
- JAVA环境变量的设置和对path , classpth ,java_home设置作用和目的?
- mysql 关于分组查询、时间条件查询
- 如何使用PowerShell匹配运算符(How to use the PowerShell match operator)
- Effective C ++,第三版:重载const函数(Effective C++, Third edition: Overloading const function)
- 如何用DELPHI动态建立MYSQL的数据库和表? 请示出源代码。谢谢!
- 带有简单redis应用程序的Node.js抛出“未处理的错误”(Node.js with simple redis application throwing 'unhandled error')
- 使用前端框架带来哪些好处,相对于使用jquery
- Ruby将字符串($ 100.99)转换为float或BigDecimal(Ruby convert string ($100.99) to float or BigDecimal)
- 高考完可以去做些什么?注意什么?
- 如何声明放在main之后的类模板?(How do I declare a class template that is placed after the main?)
- 如何使用XSLT基于兄弟姐妹对元素进行分组(How to group elements based on their siblings using XSLT)
- 在wordpress中的所有页面的标志(Logo in all pages in wordpress)
- R:使用rollapply对列组进行求和的问题(R: Problems using rollapply to sum groups of columns)
- Allauth不会保存其他字段(Allauth will not save additional fields)
- python中使用sys模块中sys.exit()好像不能退出?
- 将Int拆分为3个字节并返回C语言(Splitting an Int to 3 bytes and back in C)
- 在SD / MMC中启用DDR会导致问题吗?(Enabling DDR in SD/MMC causes problems? CMD 11 gives a response but the voltage switch wont complete)
- sed没有按预期工作,从字符串中间删除特殊字符(sed not working as expected, removing special character from middle of string)
- 如何将字符串转换为Elixir中的函数(how to convert a string to a function in Elixir)