iphone

Make iPhone status bar disappear when displaying a modal view?

I want to display a modal view, and want it to cover the iPhone's status bar. I tried setting the modal view controller's wantsFullScreenLayout property to YES; I also set its parent's property to YES as well. This doesn't work, presumably because the modal view displays below the main window's content, which includes the status bar. M...

decouple tabbaritems from viewcontroller title

Hello, We are looking for a way to decouple the lower UITabBar from the titles of the current view controller. When the title of the view controller changes, we want the text in the tabbaritem to remain the same. Is there way to achieve this other than having to reset the value in each view? Thanks in advance! ...

iphone facebook user's friends status updates

I want to retrieve the status data posted/published by friends of a user. I wrote the following code, but only get the user's own status updates. Could someone please help to tell me what's wrong with my code? Thanks! NSString *fql = [NSString stringWithFormat:@"select uid,message from status where uid in (select uid2 from friend where ...

Calculate the size of a folder...

Just a quick one... I'm creating a folder to cache images inside Documents with my iPhone App. I want to be able to keep the size of this folder down to 1MB, so I need to to check the size in bytes of my folder. I have code to calculate the size of file, but I need the size of the folder. What would be the best way to do this? Will ...

How to add an animation to the UIView in viewDidAppear?

I tried to add a animation to viewDidLoad and viewDidAppear, but it doesn't work: - (void)viewDidAppear:(BOOL)animated{ [UIView beginAnimations:@"transition" context:NULL]; [UIView setAnimationTransition:110 forView:self.view cache:YES]; [UIView commitAnimations]; } Why? ...

Iphone : How to display 3 way audio route alert?

Hi, I'm using iphone sdk 3.1.2, how does one display the 3 way audio route alert to select audio output between , earpiece , speaker and bluetoooth. The one displayed by the VoiceMemo app when you hit the button up in the right corner. Thanks ...

How does a Facebook session proxy improve security?

I'm writing an iPhone app that's using Facebook Connect. While testing, you normally embed your app secret directly into the code and set up Facebook with this call: session = [FBSession sessionForApplication:myApiKey secret:myAppSecret delegate:self]; However, for production code it's recommended to use a session proxy instead of em...

How do I implement the protocols for the Three20 framework?

I've been trying to implement the Three20 framework in my iPhone SDK app. I'm a bit confused as to implementing the proper methods. Is there any guide as to what to implement in order to make the TTPhotoViewController work? I know how to implement protocols, but the code is very difficult to read. Anyone know any guides with this speci...

Leftover Nav Bar in Landscape View

Hello, I am working to force a view into landscape mode, and have picked up all kinds of cool tips to make this happen, but am stuck on one item that is left on the screen. I have my XIB file laid out in landscape, and in my code I create the view controller normally: RedeemViewController *aViewController = [[RedeemViewController allo...

How to see UITableViewDelegate in Interface Builder?

I have a UIViewController that I've added UITableViewDelegate to. This controller has a corresponding nib. I've associated the two in IB. However, the nib's File's Owner doesn't show the tableview delegate or datasource. I have a similar controller and nib where the tableview delegate shows up fine in IB. I can't see any differences...

XCode - iPhone SDK Zombies

I was just wondering if NSZombiesEnabled is supported when debugging applications using built with a target of the iPhone SDK 3.x Also if it is supported, is there anywhere I can get a list of the possible levels supported? Regards ...

How to make a simple audio equalizer for the iPhone?

I want to make a simple audio equalizer for the iPhone, but I don't know how to start. The equalizer should be really simple and just change bass, high, distortion and maybe echo and chorus. How can I start? Maybe a sample code would be helpful. ...

UITextView not remove keyboard

Hello all, Question, I have a UITextView in one of my views, but when the user hits the enter key, the keyboard is removed. I really want the enter key to put in a '\n'. This happens in several other places in my app. Lots of posts to have the return remove the keyboard, but nothing how to keep it. In the IB, I have the return key t...

Why [object doSomething] and not [*object doSomething]?

Hi, In Objective-C, why [object doSomething]? Wouldn't it be [*object doSomething] since you're calling a method on the object, which means you should dereference the pointer? Thanks! ...

How do I create a multilevel popup prompt like in Settings-Safari-Clear History?

I have a UITableView settings screen with options important enough that I should be asking the user to confirm whether or not they meant to hit them. I want to follow the apple convention as much as possible, thus I'd like to implement a warning that looks like this: http://img.photobucket.com/albums/v283/DurAlvar/Screenshot2010-02-03a...

IPhone CLClientSend warning

This warning scrolls across my debugger console repeatedly when I debug my iPhone app on the device. Anyone know what it means? WARNING,Time,286858785.520,Function,"Boolean CLClientSend(__CLClient*, CLDaemonCommType, void*, int)",could not send message 25 to daemon 0391.0, may cache for later - result -1 ...

iPhone UX for entering 2 values and calculating 3rd?

I'm trying to present a view on the iPhone which asks a user for any 2 of 3 values and using them to calculate the third value. I'm struggling a bit with the usability. One option is to have three rows each with a label, textfield and button. Whichever row the tapped button is on is the value that will be calculated. I'm not terribly fo...

Why is pushing a new view controller moving my current subviews?

I'm developing an application with a UINavigationBar which by default shows a particular view controller. There's a button in the nav bar that links to an outlet that pushes another xib using: - (IBAction) settingsBtnClicked:(id)sender { SettingsViewController *settingsController = [[SettingsViewController alloc] initWithNibName:@"S...

CLLocationManager saying I moved 1200+ft when I'm still sitting in my chair.

I'm getting strange readings when using CLLocationManager. The Lat/Long reported are spot on, but the distance traveled is WAY off. I've implemented the following delegate method as so: .h: CLLocationManager *mLocationManager; CLLocation *mStartDistance; And .m: - (void) locationManager:(CLLocationManager *)manager didUp...

What is the different of parentView and superView

hello I am wondering about the difference between superView and parentView. view.parentView view.superView Do the 2 codes access a same object? Thanks interdev ...