iphone

Adding UIView to UITextField

Hi, I am trying to use a custom iPhone control called Kal, which displays a calendar, and I want to modify it. Kal programatically sets a table view as follows: tableView = [[UITableView alloc] initWithFrame:fullWidthAutomaticLayoutFrame style:UITableViewStylePlain]; tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIVie...

How to auto-resize UIView proportionally?

I have a UIView whose height should always be exactly 1.5 times the width. When the view is auto-resized (in this case, because the iPhone is rotated), this proportion gets messed up. How can I make sure the height/width ratio doesn't change as the view resizes? ...

Why is AudioOutputUnitStart freezing my app in iOS 4?

Hi guys, I have an audio app which uses the RemoteIO AudioUnit. It works fine on iPhone, iPad, and any flavor of the simulator on 3.2, but when it hits AudioOutputUnitStart (), it freezes. I get the message "AddRunningClient starting device on non-zero client count" in the console, which I'm not sure how to resolve. I stop the unit and ...

iPhone - ABTableViewCell and animations

Hi, I'm using a ABTableViewCell subclass ( http://github.com/enormego/ABTableViewCell ) as cells of a UITableView. This improves scrolling smoothness a lot as cells have many elements including pictures, but I can't find how to create animations for a single element of a cell. For example, when a image is loaded from the web, I'd like ...

How to time-shift audio on iPhone

This is similar to The Pitch Shift question, except I want to keep my audio at the same pitch, but play it slower or faster -- time shift it. (On the iPhone.) Can anyone point me to a library, tutorial or other reading to help with that? Thanks! ...

NSOperationQueue seems to hang on completion for a few seconds

I have a custom view controller that implements the from UITableViewDataSource and UITableViewDelegate protocols. When I load data for my table (in my viewDidLoad method), I create a NSOperationQueue and a NSInvocationOperation and add it to the queue. I throw up an activity indicator, and viewDidLoad exits. The method used for the op...

Query on iPod apps

Hi All, A silly question, is building an iPhone app different from building a iTouch/iPod app, in terms of technology, programming language? regards, darkie ...

iPhone 4.0 OS writing to visible file in sandbox

I was working prior to 4.0 OS with my iPhone and and writing to media/DCIM/100APPLE. I could download these files using DiskAid. This was a perfect dev solution. My provider without asking upgraded my phone to 4.0. Bang, I am no longer able to write anywhere visible. In distribution we will be using the temporary directory, no probl...

Is there any shared state between iPhone apps and mobile safari?

I have a website and a native iphone app. The app registers a custom protocol. I'd like the site to automatically redirect to the protocol when appropriate, but only if the user has the app installed (to avoid an annoying dialog). That means I need to write some state from the app that I can read in mobile safari to mark the app as insta...

Can't find the actual 'detail button' in a tableView's row

When I click on my tableView's detail-button... I can manage to get the section number, the row number, and even the cell itself... but why is the actual "detail button" unobtainable? (NSLog always displays "(null)" for the button.) - (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)inde...

how to convert a CVImageBufferRef to UIImage

I amy trying to capture video from a camera. i have gotten the captureOutput:didOutputSampleBuffer: callback to trigger and it gives me a sample buffer that i then convert to a CVImageBufferRef. i then attempt to convert that image to a UIImage that i can then view in my app. - (void)captureOutput:(AVCaptureOutput *)captureOutput didOut...

iPhone 4 - camera flash

Hi, I want to write a program for iPhone 4 that uses its camera flash. Is that possible? If so, which class should I work with? Thanks in advance, sagiftw ...

iphone animation stops after one pass

I'm running SDK 3.2.3 I have a simple tab bar controller with three view controllers. Each view controller has an NSArray of images for a simple animation. The animation runs a loop when each of the tabs is pushed however if you go back to tab one after you've pressed another tab, the animation doesn't run again. Any code I could put in ...

Posting picture on facebook 'feed' from an iPhone app using graph api

I am using ASIHTTPRequest to work on facebook graph API. This is the nearest I have gone to posting a picture on the feed. So if I have a ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; The url is https://graph.facebook.com/me/feed Now to post a picture I do the following: [request setPostValue:@"My Message" fo...

Simulator flips to iPhone

I created my first universal app by using the universal app template. I set up xib files and main view controllers for both iPhone and iPad and the iPhone version runs fine. Yet even though I change the simulator hardware to iPad/3.2 when I test, the simulator changes back to the iPhone. Please help. Dan ...

A good XCode sample project with SQlite, tableview, starring and reordering

I'm a complete newbie to Objective-C/XCode and it's been a bit daunting so far. I wanted to get my hands dirty by building something that incorporates a few concepts. All I want to do is have a table which is populated by rows from a SQLite database. The table should have reordering capability, I want to have a starring facility, and th...

Add UIButton after parser (on seperate thread ) is complete

I have been trying to add a button after a parser ( on a seperate thread ) is complete. I understand you cannot interact with UI elements on any thread other than the main thread. I do not want to use a timer, or a while statement... so my question is Once the parser is done what do you suggest I do to add the button to the view? I do ...

How do I detect if other apps are playing background audio?

I am making a game for iphone/ipad, and don't want my background music to interfere with music the user might already be playing. I know I can get the state of the iPod app using MPPlayerController, but how would my app figure out if something else, like Pandora, was playing background audio on iOS4? ...

What type of webservice works best with iOS?

I'm going to be creating an internal app for the iPhone and iPad that will keep track of sales calls, the associated quotes, photos, and drawings for those quotes. I'm still in the concept design phase and I'm trying to read up on the different ways to communicate between my app and the webservice. Obviously since this will be used mostl...

iphone app crashes on some devices

hi sorry for the wired title. couldnt find a better one my app is live and it seems like the app crashes on some diffrent devices (3gs ios4 jailbreak - no jailbreak ) the app uses - internet - writes textfile to phone - reads date from the phone i dont know how i can solve this problem best. maybe someone can help me or point me to a...