xcode4

Capture Video in Objective C [duplicate]

匆匆过客 提交于 2019-12-08 03:42:02
问题 This question already has answers here : How to record a video in iOS (4 answers) Closed 6 years ago . I am new to the iPhone development. I would like to know how to capture the video in Xcode.... I know how to take still images in iPhone using Xcode but dont know how to capture video. Can anybody help me??? Any little help will be appreciated greatly. Thanks in advance... 回答1: I'm pretty sure there's no direct way to capture video from a running application in the way that you can grab a

What does this mean? “Writable atomic property 'fileManager' cannot pair a synthesized setter/getter with a user defined setter/getter” [duplicate]

落花浮王杯 提交于 2019-12-08 03:02:31
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: error: writable atomic property cannot pair a synthesized setter/getter with a user defined setter/getter I have a header file where I declare an atomic property, like this: @property (retain) FileManager *fileManager; Then I synthesize that in the implementation file: @synthesize fileManager; And then I write my own accessor for lazy initialization: - (FileManager*)fileManager { if (fileManager) { return

Mach-O Linker error

两盒软妹~` 提交于 2019-12-08 02:56:23
问题 I am building ipad application in XCode 4. For that, i added some outside frameworks in my project. The code work fine in simulator but showing 24 Mach-O Linker error. I searched for this topic and get various different reasons for this error but not getting the right one. Any suggestion will be of great help. 回答1: Most likely the library you are using has not been built for arm. For a library to work in the simulator, it must be compiled for i386 architecture. To work on the device, it must

Xcode semantic issue “Initializer element is not a compile-time constant ”

泄露秘密 提交于 2019-12-08 01:35:44
问题 I have this Error with calling NSMakeRange method. What I'm doing wrong? #import <Foundation/Foundation.h> // NSRange range1 = NSMakeRange(12, 5); 回答1: When you initialize a variable outside of a function or method, you can only use constant values: you can't execute any code. Here the problem is that you're trying to execute NSMakeRange . (See the answers to this question, which is similar). The solution is to declare range1 but not assign any value to it, and then implement an +initialize

when exactly do Interface Builder items get instantiated?

一个人想着一个人 提交于 2019-12-08 01:34:36
问题 Say I create a navigation based application from the template in XCode4, then there will be in the MainWindow.xib a Navigation Controller, which has as a child the RootViewController. When exactly would then: Instance of RootViewController be created? This instance be associated as a child with the Navigation Controller? In particular when in relation to the timing for the applicationDelegate "didFinishLaunchingWithOptions" method and when it occurs. 回答1: As given in the plist the MainWindow

Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain

孤街醉人 提交于 2019-12-08 01:22:27
问题 I am trying to create an ad hoc distribution of my App to send to a colleague. I am getting the following error when trying to Archive my project for distribution: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain These are the steps which I have followed: I have registered the device in the provisioning portal. I have generated a certificate signing request in keychain. Using this I have created a DISTRIBUTION

Place mediaItemCollection data in UITableView

梦想的初衷 提交于 2019-12-07 22:36:45
问题 I need some help placing the mediaItemCollection data in a UITableView . Code: // Responds to the user tapping Done after choosing music. - (void) mediaPicker: (MPMediaPickerController *) mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection { [self dismissModalViewControllerAnimated: YES]; [musicPlayer stop]; [[MPMusicPlayerController iPodMusicPlayer] stop]; [[MPMusicPlayerController iPodMusicPlayer] setQueueWithItemCollection:mediaItemCollection]; [

FSMountServerVolumeSync parameter objective c

别来无恙 提交于 2019-12-07 22:19:35
问题 I'm just starting Objective C after being pampered with Applescript, and I can't seem to get FSMountServerVolumeSync to work. This is going to seem like a completely beginner question, but how do you pass a parameter from a variable to this action ? Let me explain: I want to take a variable called *username and set it to the username in this action. I would also like to do this to *url and url . Is there any way someone could show me a sample of how to set this up, from an absolute beginner

XCode 4.5.2 working issues

隐身守侯 提交于 2019-12-07 22:13:44
问题 I have recently downloaded Xcode update 4.5.2 and it seems to performing slow. I have tried other applications and everything is running fine. I'm currently developing an app and it's been performing so slowly, that I can't edit an UIlabel box. 回答1: Just in case: remove the contents in the "~/Library/Developer/Xcode/DerivedData" - Folder and see if it still stalls. I had a sluggish Xcode once and that helped. 来源: https://stackoverflow.com/questions/13294521/xcode-4-5-2-working-issues

Routing audio input to receive from TOP microphone on iPhone

半城伤御伤魂 提交于 2019-12-07 21:45:03
问题 I am writing a little app to record multiple tracks and play them back over one another. I am using the PlaybackAndRecord mode and i am routing my output to the main speakers. Problem is that the bottom microphone is still being used for input as well so now I when I record I get the output from the other tracks really loud on the new track. Here is what I have so far: audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];