简体   繁体   English

录音语义问题

[英]Audio Recording Semantics Issues

So I am not very good with computers and have to create my first app for a project. 因此,我对计算机不是很好,必须为项目创建第一个应用程序。 It's going fine so far - essentially I am trying to create an app that records and saves data. 到目前为止一切正常-本质上,我正在尝试创建一个记录并保存数据的应用程序。 Right now I'm still getting the record part down, since Xcode is having periodic issues. 现在,由于Xcode经常出现问题,因此我仍然需要保留部分记录。 I am using this link for setting up the code: 我正在使用此链接来设置代码:

http://www.techotopia.com/index.php/Recording_Audio_on_iOS_7_with_AVAudioRecorder http://www.techotopia.com/index.php/Recording_Audio_on_iOS_7_with_AVAudioRecorder

Unfortunately, I am running into 2 types of semantic errors, two red, two yellow. 不幸的是,我遇到了两种类型的语义错误,两种红色,两种黄色。 They are all in RecordModelController.m - the first is like this: 它们都在RecordModelController.m中-第一个是这样的:

return [self.pageData indexOfObject:viewController.dataObject];

Xcode claims that Property 'dataObject' isn't found in any object or forward class in 'RecordDataViewController'. Xcode声称在'RecordDataViewController'的任何对象或转发类中均未找到属性'dataObject'。 That's actually my two red errors, they just sound very similar so I paraphrased them into one. 那实际上是我的两个红色错误,它们听起来非常相似,所以我将它们解释为一个。 The yellow error, however, repeats itself twice on the same line of code, which is: 但是,黄色错误在同一行代码中重复两次,即:

return [self viewControllerAtIndex:index storyboard:viewController. storyboard];

The yellow issues on these lines of code (again, repeated twice) is "Incompatible pointer types returning 'RecordDataViewController *' from a function with result type 'UIViewController *'" - I genuinely tried to look in RecordDataViewController.h and couldn't make sense of this. 这些代码行上的黄色问题(再次重复两​​次)是“不兼容的指针类型从结果类型为'UIViewController *'的函数返回'RecordDataViewController *'”-我确实试图在RecordDataViewController.h中查找,但无法执行这种感觉。 Like I said, bad with computers, not sure why I'm having this issue, and I know that it's probably something basic. 就像我说的,对计算机不好,不确定为什么会遇到这个问题,而且我知道这可能是基本问题。

If anyone would be willing to help me out with how to deal with issues like this, that would be great. 如果有人愿意帮助我解决此类问题,那就太好了。 Thanks, and sorry for my incompetence. 谢谢,对不起我的能力。

The red are called errors. 红色称为错误。 The yellow are called warnings. 黄色称为警告。 I'm going to suggest you look at a few beginning Xcode/iOS programming tutorials so you understand the basic concepts of how view controllers, arrays, etc. work in objective-c. 我建议您看一些入门的Xcode / iOS编程教程,这样您就可以了解在Objective-C中视图控制器,数组等如何工作的基本概念。 The best place to start for someone completely new as yourself is here: http://www.raywenderlich.com/tutorials 对于像您这样的陌生人来说,最好的起点是这里: http : //www.raywenderlich.com/tutorials

Hope this helps! 希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM