xcode

Recording and then Playing Audio using AVAudioRecorder and AVAudioPLayer

I have an AVAudioRecorder that captures the sound. What I want is to be able to Play(AVAudioPlayer) the recorded(AVAudioRecorder) sound as it is being recorded. I have set up the AVAudioSession property to playandRecord... but I dont know how do I program the following sort of scenario? Like you have your head phones on and you are wal...

Including a static library in a Xcode project

Hi, I have developed a static library using the "iPhone OS->Library->Cocoa Touch Static Library" of Xcode. I compiled it and it works fine. Then I wanted to include this library in a new project. Here is what I've done : Create a new Xcode project "View-based application" Project->Add To Project : I added my static library .xcodeproj...

iPhone basic memory management

Is this proper memory management? What I'm wondering is if I am supposed to release after the alloc in -viewDidLoad. SomeViewController.h #import <UIKit/UIKit.h> @interface SomeViewController : UIViewController { UIButton *someButton; NSString *someString; } @property (nonatomic, retain) IBOutlet UIButton *someButton; @prope...

How to add Terms and conditions view to my application so that it will be visible first time only...

In my applications i hav a terms and conditions view describing terms to use when user selects agree he will go to sign in page otherwise not ,it must be visible to user at first time when application launched in his mobile after that it has to start up with sign in view how can i do this ... any ideas appreciated.... ...

UIPopoverController animates when keyboard pops up

Heey, In my iPad application I have a UIPopoverController with a UIViewController containing some textfields. When the keyboard comes up, the Popover gets animated to fit. Does anybody know how to disable this? Thanks ...

Only displaying managed objects depending on an attribute

This is probably very basic but I am struggling. I have an NSFetchedResultsController that gets managed objects from an entity I specify. The problem is I want to only display the managed objects that have a certain attribute in my table view. - (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath { NSManaged...

How do I run my iPhone app on the iPad simulator

I recently updated to the new version of xcode. Big big mistake I have been have constant problems ever since. How do I run my iPhone app in the iPad simulator. The option to do so has disappeared! I used to have the option when building to run either on iPhone or iPad device or simulator. Now I can only choose simulator or device a...

Why are my properties `out of scope`?

I have a method to generate some strings based on the values of some variables I get from I picker controller that is presented modally. I get the values back in the delegate method fine and I can assign them to some properties in my view controller successfully. When I call my method to do the updating, I send the values to the consol...

Xcode 4 - Connecting Outlets

This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can't get it. I right click and drag an outlet from the new referencing outlet circle, and into my header where the object is declared, but nothing happens. Has anyone used this? Thanks a lot ...

How to detect XCode vs Makefile build

I'ld like to automatically detect (using #ifdef) whether I'm building using XCode or using make under Darwin. Is there a specific define to XCode or make set automatically by either tool? I'ld like to avoid setting a define in the XCode project or Makefile manually. ...

cant find command line utility in x code to start objective c program?

cant find command line utility in x code to start objective c program? how can i start command line utility? ...

Seeking advice for iPhone app structure

Hi, I've been tasked with creating an iPhone app which will tap into a series of REST API JSON feeds from Twitter. I'm somewhat new to iPhone development, but I've created a few apps before, though none of them required tapping into API data. So let's say we have 3 views in Interface Builder that are being controlled by a tabcontrolle...

How to rename a project in XCode?

There are some pretty horrible instructions out there for renaming projects in XCode. Is there no easy way to do this? ...

NSApplication Exception crash

Hi , my xcode iphone / ipad app crashes when it hits main() upon calling NSApplicationMain() only in ipad build not iphone build any help any one!!! ...

How to exit an iPhone app if the terms are rejected?

When the user selects "Reject" on my Terms and Conditions page, I'm able to display an alert, but I can't figure out how to exit from the application completely. Is there a way to do that? ...

Use accelerometer in a tab app

Hello, I would like to use the accelerometer in a tab app. All three tabs would access the current x,y,z and change an mage based on that data. My problem is where does the initialization of the accelerometer go so that all three tabs can update based on the data? The update only needs to happen when you are in the current tab. I can o...

Binding a selector to the target of a NSButtonCell

I'm using the following code to add a target binding to a NSButtonCell control: [dataCell bind:@"target" toObject:eventDatesArray withKeyPath:@"selection.self" options:[NSDictionary dictionaryWithObjectsAndKeys:@"sellTicket:", NSSelectorNameBindingOption, nil]]; eventD...

how to implement drop down menu

i have to select one category from drop down menu when i press a field ....without using picker view... ...

UINavigationController / reloading views / working with views!

Hi stack overflow! I have a view based project working with a UINavigationController. The RootViewController performs operations for writing to a data model when a new entry is made. I have an add (+) button on my main screen that adds an entry with a timestamp and records this to the data model. I want to click the add button, brows...

Develop remotely in XCode using iPad and VNC / RDP.

Okay, this is a simple question. Which VNC/RDP app for iPad has features (maybe such as developer-friendly keyboard layouts) that are good for using Xcode remotely? Maybe some of you Mac developers out there have an iPad, and have tried using Xcode remotely on your iPad using some VNC / RDP app. The question is, which one is BEST for WOR...