iphone

Handling multiple alert views in iPhone/iPad application

Hi All, I am working on an application that involves communication between two devices. When device#1 seeks to communicate with device#2, it first sends a request message. Upon receiving the message, device#2 informs the user that a person wishes to communicate with it. If the user is interested in receiving the data, he choses Yes ot...

Visual effects with video recording

Hi I am looking forward to get some visual effects will recording video but unable to get any help from any where. It would be great if any one now how to do this. I am stuck in this from long time. Thanks in Advance. ...

How can I determine if two paths in Quartz 2d intersect?

If I create two paths in Quartz 2d, is there a way to determine if they intersect? Vaguely thought one could make a context and set one path as the clipping path, then draw the other path through that; but then how to determine if the resultant path is empty? ...

Would using webview with phonegap get an app rejected from Apple App Store?

Would using webview with phonegap get an app rejected from Apple App Store? The app would not be all in webview, but will using webview for certain things make apple reject the app? ...

Fixed background image, that doesn't move when new views are loaded

Hi, I have an iPhone app with a navigation controller. Views slide in from the right. I want a background picture that is fixed, so that it doesn't slide with the views pushed on the nav controller. Is that possible? Thanks! ...

Sort JSON NSDictionary for UITableView

Hi, I am using TouchJSON to retrieve info for my app and put it in a dictionary. I would like to be able to sort it by values like difficulty and rating. How would I go about this? I have included my .m file. Thanks, enbr http://pastie.org/1091334 ...

dismiss UIActionSheet when App goes in background on iOS4

In the app I am working on, I have action sheets and alert views which I would like dismissed when app enters the inactive/ background state. I am using the UIApplicationWillResignActiveNotification instead of the UIApplicationDidEnterBackgroundNotification as I want the code to be compatible with iOS3.2. -(void)applicationWillResign...

Memory Leak on iPhone?

If I keep calling this method over and over and over: -(IBAction)pressedNextPage { NSUserDefaults *profiles = [NSUserDefaults standardUserDefaults]; NSInteger newUser = [profiles integerForKey:@"activeuser"]; if(newUser == 1) { [profiles setObject:name.text forKey:@"name1"]; [profiles setObject:social.text forKey:@"social1"]; ...

How do we detect if wifi becomes unavailable in iPhone SDK

Hi All, Is there any way that we can programatically identify when the wifi of a user becomes available/unavailable? My application requires exchanging messages between two different devices. It is working good in stable wifi setups. But if the wifi is unstable, I am having trouble in detecting if the other device is available or not....

App crashes when tab bar item is selected.

I have a tab bar item with a UIScrollView and all the code works. I link the UIScrollView IBOutlet in IB to a UIScrollView I placed in my View. When I run the app and select the tab bar item I get the following error. Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this cla...

Words Per Minute Iphone SDK

Hi, I need to calculate words per minute while typing in textfield. It is typing speed calculator and it provides user text need to be typed in the lable above textfield. Please give me some idea how to get started and what events to use. Thanks you. ...

how to make tableview like contact apps

Hi, I want a do a tableview like in the contact apps, is it many tableView? There is a tableview controller or they just drag table in interface builder, how do you make vertical line in the cell, is it custom cell table view. That's a lot of question but juste give me the main idea to do a tableView like this? thx, alex ...

How to use id variable in objective-c?

I have an NSArray that contains two types of objects. Lets call them Apple and Orange. Apple *myApple = [self.searchQueryResults objectAtIndex:indexPath.row]; When I am building my cell's I don't know what type is in my array, apples or oranges. How can I use the generic id type to store the object, and then cast appropriately? ...

Ensuring Orientation of UIView subviews.

Hello, I have a UIView that will eventually contain a child, another UIView. What I would like to do is ensure that the child is always oriented in the lower left corner of the screen, regardless of orientation. If I add the view at position (0, 0), the subview will remain in the top left corner, regardless of orientation. My questio...

can i submit my OS4 APP using release mode of iphone 3G???

my OS4 app is running good in debug mode on my 3G but can i submit this app to appstore or i need to build release mode on Iphone4??? ...

CorePlot iPhone error : CorePlot-CocoaTouch.h: no such file or directory

Hi everyone. I'm trying to walk someone through adding CorePlot to their iPhone app. I have it working on my computer, but he keeps getting the CorePlot-CocoaTouch.h: no such file or directory error. I get the same error if I mess up the "header search paths" in the build settings. Otherwise, I can build it just fine. The only d...

How to create iPad native looking html help pages?

I'd like to make some in-app help for my iPad app so I'm looking for examples of other apps that do it well. If I look the help for the Apple Pages app on my iPad, it opens the following url: http://help.apple.com/iwork/mobile/interface/#tan724868a9 This looks like a native app in Safari on iPad. How did Apple make their html help page ...

Class Methods Used Many Times Cause Leaks?

Let's say I'm developing a game. I run the following class method thousands of times: NSBundle *bundle=[NSBundle mainBundle]; I do not create an autorelease pool and release the objects that call the above class method all the time. I create an object, it calls the above class method, I release it, and on, and on, thousands of times. ...

iPhone: touches on UIViewController

I have a UIViewController, on top I put an UIImageView, then a UIScrollView. I can process touches on the UIScrollView just fine, however I want to process certain touches on the UIViewController. I only need touches on the UIScrollView that are held for 5 seconds (This part works fine). Anything less than that I want to pass to the UI...

The problem of NSTimer

Hello All, I add a NSTimer in the iphone application。When I run the application,it‘s failed。I has tracked it and found that it stop at “0x3050c3ad <+0013> call 0x306aeaa5 ” and cann't go on in Debugger。 If you know,please tell me what’s wrong with the application and how to solve it。 Thank you! The code is: NSTimer *m_heartBeatT...