iphone

Setting Back Button Tittle in Navigation Controller problem

Hi, I'm trying to change Back Button tittle in a navigation controller in the following way: In the parent controller I put this in vieDidLoad: self.title = @"Calendars"; self.navigationItem.backBarButtonItem.title = @"Previous"; But this controller is in the stack since I initialized the app: -(void)applicationDidFinishLaunching:...

Why Is Bottom Half of Custom UIActionSheet with UIDatePicker Disabled?

Everything seems to be working great with my UIActionSheet that contains a UIDatePicker except that the bottom half of the DatePicker is disabled. Visually there is a shadow that makes the bottom half of the picker darker than the top half. Everything in the bottom half is disabled and I can't for the life of me figure out how to enable ...

Two variables will not subtract in XCODE

I am trying to subtract one variable from another, and use that output. but when I subtract them, the outcome is just the second variable negative! int distance = pointX-pointXTwo; NSLog(@"%d", distance); ...

How to control overlapping Alpha fades on iPhone...

I have two animation methods, basically the just repeat... How do I prevent them from overlapping and flickering, is there a convenient way to do this? Thanks, -(void) doPowerChangeAnimUp { powerIconChange .alpha = 0; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDidStopSelector:@selector(animationDidSto...

UIScrollView scroll problem

Hello, I have an UIScrollView and in the lower part of the screen is a textfield. When I select the textfield the keyboard is displayed above the textfield. The UIView within the UIScrollView is not large enough to scroll up and free some space for the keyboard. So I've tried to enlarge the UIView programaticly. This is what I've got: ...

How to define click event for UISegmentedControl in iphone?

I have implemented UISegmentedControl in my application. None of the button is selected in normal state. I want to implement button click event when first segment is selected and another event when another button is clicked. Thanks in advance. ...

iPhone SDK Add Image to the Body of an Email?

Hi, I was wondering if anyone knew how to use an image in the body of an email when the mail app is opened. Can anyone help? Thanks in advance Kieran. ...

I need to work on multitasking in Iphone SDK 4.0

Actually I am looking for Multitasking in Iphone SDK 4.0 and want to run to apps at the same time as it does in Ipod application for Iphone like songs while u can use different apps also. Is there any idea that how to use that feature in Iphone SDK 4.0 beta. I have tried multiple NSThread but runs on same view or differnt but cant figur...

Differences between iPhone/iPod Simulator and Devices

Hi, since I started iPhone/iPod Development I have come across some differences between how the simulator and how real device react. Maybe I will come across some other differences I will have to figure out as well, maybe other people haven't met these problems here (YET) and can profit from the knowledge, and maybe you know some problem...

Populate tableView with more than one array

The short version: Is there a way to populate one specific row in a tableView with one value from one array, then populate another row in that same tableView with one value from a different array? For example, cell 1 would have the first value from Array A, cell 2 would have the first value from Array B, cell 3 would have the first val...

How do I change the background image of my iPhone app?

Hello I have looked around and found some code which so called chooses an image from an array of image objects, but cant find an explanation. I would like to make my app have a background image and the user can select next and previous buttons to scroll through some full screen images, setting them as the background image as they scrol...

distribute iphone universal app

When you distribute an iphone/ipad universal app do you compile it against the 3.1.3 SDK or 3.2? When are some of the settings? ...

[iphone] [mobilesubstrate] How do I hook a property/variable?

Hi, I know how to hook a function with MobileSubstrate. But what's about variables/properties? Is it for example possible to hook [[UIDevice currentDevice] model]? What's about MSHookIvar? How do I use it? Thanks in advance -- pixar ...

How to setup environment variables for gcov on iPhone

I have overcome all problems with setting up gcov on my iPhone project but now I am getting the following: profiling:/Users:Cannot create directory Does anyone have any suggestions as to what I might be doing wrong? I originally setup gcov following Google's instructions which can be found by Googling "UsingCoverStory" UPDATE: Okay, ...

iPhone app memory leaks from core frameworks

Are these kind of leaks normal? Are they false leaks or something I should be concerned with? The instruments tool doesn't give me any line of code from my app, seems Apple's frameworks are leaking?! Ok, the problems could only come from here: (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexP...

UIVIewController wrong position before rotate

I have the starter point of my application this window (white background): - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { mainScreen = [[MainScreenController alloc] initWithNibName:@"MainScreenController" bundle:[NSBundle mainBundle]]; // add it to the main window ...

UIScrollView eating touches from its parent

I have nested scrollViews (or rather a subclass of UIScrollView inside of an actual scrollview). I set the size of the inner view to its contentSize and set scrollEnabled = NO, because I only want the outside view scrolling. But the innerView occasionally eats touches and keeps the outerView from scrolling when it should. Is there som...

Has NSXMLParser become more strict in iPhone SDK 3.x?

I recently migrated an iPhone project from the 2.2.1 SDK to 3.1.x and, to my surprise, an XML feed that was (and still is with the published app) being parsed by the 2.2.1 NSXMLParser is now causing NSXMLParser to return errors. The XML document in question doesn't meet the W3C standard, but the 2.2.1 parser is able to handle this. I'm...

Crashes when using AVAudioPlayer on iPhone

Hi all, I am trying to use AVAudioPlayer to play some sounds in quick succession. When I invoke the sound-playing function less frequently so that the sounds play fully before the function is invoked again, the application runs fine. But if I invoke the function quickly in rapid succession (so that sounds are played while the previous so...

Navigation Items in UITableViewController are not appearing?

I am displaying a UITableViewController inside of a UITabBarController that is being presented modally: -(IBAction)arButtonClicked:(id)sender{ //this is a uitableviewcontroller ARViewController* arViewController = [[[ARViewController alloc] initWithNibName:@"ARViewController" bundle:nil]autorelease]; LeaderBoardTableViewCon...