Tag: 目标

ionic3 – 苹果Mach -O链接器(Id)错误?

这是所有错误显示: Apple Mach -O Linker (Id) Error? "Linker command failed with exit code 1 (use -v to see invocation). 在我的ionic3项目中安装OneSignal插件后,还没有安装完所有的东西,当我试图在我的设备上运行我的项目,这个错误出来了。 而当我打开.xcworkspace文件时,两个项目向我展示。 第一个是我真正的项目,最后一个是我安装了OneSignal plugin ,安装了sudo gem install cocoapods, pod repo update然后显示 刚刚我尝试运行ionic cordova run ios –device设备,可以在我的设备上运行,但是当我使用xcode,并按下播放button,无法在我的设备上运行,并显示错误,我的问题标题

在Ionic 3上录制和播放audio

我在iOS上有一个奇怪的问题。 我正在使用Ionic Native Media插件录制audio,并尝试使用HTML5 Web Audio API(WavesurferJS或HowlerJS)播放录音。 如果我尝试立即播放录音,录制audio后,audio将无法播放,但如果closures了应用程序,然后重新打开它,audio将播放正常。 HowlerJS投掷的错误是“audio解码错误”。 我的想法是Native Media插件没有完全释放该文件,因此没有给予HowlerJS读取audio数据的权限。 任何想法或方向表示赞赏。

具有多个项目的工作区或具有多个目标的一个项目?

我有4个类似的iOS应用程序。 他们是闪存卡应用程序,每个应用程序都有不同的主题。 他们分享很多课程和图像。 现在我把所有4个作为单独的项目,但我期望简化维护和共享资源。 将所有4个项目放在同一个工作区,还是在一个项目中有4个目标? 每种方法有哪些优点/缺点? 他们看起来非常相似。

IBOutlet在两个故事板上的两个viewController …是可能的

我有一个应用程序与iPhone和iPad的两个目标。 此项目不使用大小类别。 在iPhone版本中,我有一个包含名为“termsAndConditions”的viewController的故事板。 这个viewController有类文件termsAndConditions.h和.m。 在termsAndConditions.m里面我有一个链接到viewController上的textView的sockets。 那么我有iPad的第二个目标。 我有相同的viewController那里叫“termsAndConditions”。 我的想法是从iPhone版本与这个其他目标使用相同的类文件termsAndConditions.h和.m。 但有一个问题。 请记住,出口指向iPhone故事板的viewController上的textView? 当我分配iPad termsandndconditions viewController使用相同的iPhone类文件,它显然工作,但是当我尝试访问iPad上的textView没有任何反应。 另一方面,当我在实现上将鼠标放在sockets上时,两个视图控制器上的textViews都会高亮显示。 显然,类文件sockets真的与不同的故事板上的两个textView链接,但这似乎是假的。 有没有办法做到这一点,或者我将不得不复制termsAndConditions.h和.m与另一个名字iPad故事板上使用? 这似乎是一个愚蠢的解决scheme。 谢谢。

findUILabel的底部位置,以便可以在下面创build第二个UILabel

我有一个新的文章,我正在创build。 正在为文章标题添加UILabel 。 标题文本有时可能是一行,两行或三行文本。 然后我需要在标题下面创build一个UILabel 。 由于标题具有dynamic高度,因此我无法定位dateUILabel 。 有一个计算来获得我的UILabel的框架的底部位置? 注:我正在使用siteToFit来确保UILabel的框架适合。 // Text UILabel *title = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, self.view.bounds.size.width-20, 50)]; //title.backgroundColor = [UIColor clearColor]; title.backgroundColor = [UIColor redColor]; title.text = self.firstItem.title; //title.text = @"This is a test of a short title that is a little longer"; title.textColor = [UIColor whiteColor]; title.layer.shadowColor = [UIColor blackColor].CGColor; […]

animationUISplitViewController的主细节控制器的可见性

在我的UISplitViewController中,我希望主视图控制器只允许在纵向方向或当我的详细信息视图控制器不显示控制器typesMyFullScreenViewController 。 我已经实现了UISplitViewControllerDelegate以适当地指出这一点。 -(BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation { if (UIInterfaceOrientationIsPortrait(orientation) || [[self.navigationController topViewController] isKindOfClass:[MyFullScreenViewController class]]) { return YES; } return NO; } 但是,UISplitViewController仅在旋转期间调用委托。 所以MyFullScreenViewController实现了一个viewWillAppear:animated和viewWillDisappear:animated 。 – (void)viewWillAppear:(BOOL)animated { [self fakeRotationOfSplitViewController]; [super viewWillAppear:animated]; } – (void)viewWillDisappear:(BOOL)animated { [self fakeRotationOfSplitViewController]; [super viewWillDisappear:animated]; } -(void)fakeRotationOfSplitViewController { UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation]; CGFloat duration = 1.0f; CGFloat […]

Xcode:用新产品名称更新项目产品组

在Xcode的产品组中,即使在我为设备构build之后,我也有红色的库“libMyLib-mac.a”,因为我已经将项目的目标库中的产品名称更改为“libMyLib.a”。 现在,我如何更新Xcode来显示新的产品名称? ( 注意:当我使用-mac后缀更改名称时,库将被build立并显示在产品文件夹中。

获取UIView FXBlurView单独的类

我正在使用FXBlurView,但是当将blurViewanimation时,我在顶部接收到一个奇怪的黑线。 我有一个UITable是3/4的ViewController和其余的图像。 发生了什么是在UITable视图中只是拾取UITable而不是图像。 那么有没有一种方法可以让superview同时提取? 还是replace? 我已经读过,这可以通过用实际的UIViewreplace超级视图来解决 FXBlurView默认捕获其直接超级视图的内容。 如果超级视图是透明的或部分透明的,则其后面显示的内容将不被捕获。 如果需要,您可以覆盖underlyingView属性以捕获不同视图的内容。 FXBlurView.m代码是: – (UIView *)underlyingView { return _underlyingView ?: self.superview; } 我试过这个: ((FXBlurView *)self.Genres).underlyingView = _main_view; 但这没有什么区别 其中ImagesTableViewController是我的主要ViewController包含Blured Uiview和我想复制( main_view ) 但是这只是为Blured Uiview创build了一个白页。

UIImage掩盖与手势

我试图在iOS中实现select性的颜色function。 我个人认为,先用手指画出形状,然后将其转换成蒙版,但同时应该是实时的,它应该在我的手指在灰度图像上移动时工作。 任何人都可以指导我纠正path。 示例应用程序: https : //itunes.apple.com/us/app/color-splash/id304871603?mt = 8 谢谢。

UIImageView setFrame:不在UITableViewCell中工作

我有一个UIImageView在自定义的UITableViewCell ,我想调整它,我把它设置为左视图模式。 要resize,我正在应用下面的代码。 [cell.IBImage setFrame:CGRectMake(201,12,50,20)]; 我的图像宽度是100,我想减less到50,但它仍然显示我在100宽度。 如果我将视图模式设置为“ Scale To Fill它可以正常工作,但我希望将其视图模式设置为“左”。 完整的方法cellForRowAtIndexPath如下所示: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"DetailCell"; DetailCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"DetailCell" owner:self options:nil]; cell = (DetailCell *)[topLevelObjects objectAtIndex:0]; clsDetailResponse *Response = [self.Histories objectAtIndex:[indexPath row]]; [cell.IBUsernameLabel setText:[NSString stringWithFormat:@"%@ %@", Response.Firstname, Response.Lastname]]; [cell.IBImage setFrame:CGRectMake(201, […]