iphone

Probelm with identification of accelerometer path

Hi, I have a problem with my app. I have create these. My app store the accelerometer value (x,y,z) in an NSarray for a little time. The information has store correctly but now i want to identify the similar path but i haven't any idea. Can yo help me for identify the similar path that i have stored? Thanks and sorry for my english ...

how to handle multiple layers in single scene in cocos 2d iphone

hai to all , I am learning cocos2d .In that we have multiple layers in single scene Know. I want to manage both layers at a time .I,e. first scene with 480X320 image and second one also with same size .here second one only getting visible .Thts ok .But whenever touch occurs I want to add another sprite to both of the layers (different s...

Wait before execute istruction

Hi I wan't to perform an animation before quitting a view. The problem is that if I write this code: [self animationMethod]; [self removeFromSuperview]; the animation is not presented because the removeFromSuperview instruction is immediatly executed, i suppose. There's a way to specify thath the removeFromSuperview method must be e...

Create a Controller of 2 viewController

Hello, I have a problem in my iPhone application. I created an application in which I have 2 views and their respective controllers. The variables declared in the first view but not visible in the second and the same for the second. It can create a "controller" that allows you to manage two views of variables making share so? Thank you a...

CGContextDrawPDFPage taking up large amounts of memory

I have a PDF file that I want to draw in outline form. I want to draw the first several pages on the document each in their own UIImage to use on a button so that when clicked, the main display will navigate to the clicked page. However, CGContextDrawPDFPage seems to be using copious amounts of memory when attempting to draw the page. ...

How to define a function that returns a String in Objective-C / Iphone SDK

Hi all, I am an Objective C noob and need a bit of help. I need to pass a function 2 integers A and B. The called function then checks if A > B, A = B or A < B and passes back a string. If A > B then it must pass back "HOT" If A = B then it must pass back "MEDIUM" If A < B then it must pass back "COLD" Also how do I call this fun...

Issue in opening presentModalViewController iphone xcode?

i am using tabbarcontroller. In tabbar having one view.In that tab i call one function using Nstimer it open another viewcontroller. //Third.m - (void)viewDidLoad { [super viewDidLoad]; [self TimerStart]; } -(void)TimerStart { TesttabAppDelegate *delegate = (TesttabAppDelegate *) [[UIApplication sharedApplication] deleg...

Validate login page in Twitter in iPhone

Hi, I am woking on twitter application. I have used "Twitter Request" package and implemented in my application and posted a tweet messages successfully. Now i want to validate the login page, whether the user typed the user name and pass word is correct or not. If the user types the correct datails, the message will be posted otherwise...

Copy NSArray and replace text items with bool values

I utilize a (nested) plist to populate UITableViews where users can select entries at the deepest levels and set a checkmark (or not). I want to save these selections in a same structured list where at the deepest level the NSArray contains bool values instead the text strings that are displayed in the UITableView. So how can i build fr...

Is there any way to put an .exe application on an iPhone or blackberry

I am working for Bentley leathers and I we have a password calculator (.exe) and I am wondering if I could put it on my iPhone or the compagny BlackBerry so that way it would be easier then to have a ton of paper with me. ...

How can I detect which system my App Store application is running on?

I am developing a Cocoa Touch application for Apple's App store and I want to do some tweaking in the code depending on what device it's running on. How can I tell? ...

UINavigation Controller and Autorotation

I am using a UINavigationController to push and pop views. The Navigation bar is hidden. I have RootViewController, which is set to autorotate. It works just fine when it is visible. I also have GalleryViewController. It has autorotation disabled by just returning no. My problem is, when GalleryViewController is on the nav stack, ...

iPhone game display is off the screen by 10 pixels or so on the device

I recently deployed my first iPhone app, a simple game, to my testing iPhone for the first time. Everything looks and runs fine on the simulator in Xcode, but on the iPhone the whole image is shifted up about 10 pixels or so. So the gameplay goes slightly offscreen on top and has a slim white/grey bar at the bottom. Has anyone encounter...

Is there a programatic way to get standard dimensions in the IPhone SDK

Is there an object or function call that will provide standard dimensions for various user interface elements in the iPhone SDK? Specifically I'm looking for the width of the whitespace gutter the Interface Builder normally recommends you put get between controls and the edge of a view. In windows there is a function call called GetS...

iPhone: Create a single UIView from multiple clicks

I'm making a partial overlay modal in my app with the code from “Semi-Modal (Transparent) Dialogs on the iPhone” at ramin.firoozye.com. In doing so, the button that calls the modal is still visible and clickable. I will hide this button when the modal spawns, but I want to be sure if the user clicks very quickly twice, a new modal doesn'...

Verifying existence of name and password in NSUserDefaults to Skip a login/Screen

I have a Tabbar/Tableview App that modally loads a Login/Signup view when the app loads, I have set up a Root.plist in a settings bundle for the name and password and have successfully retrieved the items. I want to be able to do two things: 1) Do a test to see if the NSUserDefault Strings are empty and if so load the Login/Signup view....

How to store Matrix or Vector data structure in Core Data?

I am building an iPhone application that needs to store some sort of matrix or vector data in core data. For some unknown reason, the iPhone SDK does not include any kind of matrix data structure in its foundation classes, so I built my own data structure which uses an NSMutableArray of NSMutableArrays to store the data. So far so good. ...

invalid entitlements 0xE8008016 when I add the entitlements file

I'm trying to do ad hoc distribution. When I use XCode, the application installs fine on my phone. In preparation for ad hoc distribution, I created the default entitlements file, unchecked the get-task-allow box, added the entitlements file name to the code signing entitlements line, and tried to install on my phone. If I have the fi...

Can I intercept SMS messages on the iPhone?

Can I intercept SMS messages on the iPhone? I would like to intercept messages and NOT have them display on the phone and then send out an auto reply. Is this possible in 3.x? Is it something they may alow in the future? ...

Problem copying NSMutableArray

I am trying to copy one array to another: NSMutableArray *itemsCopy = [[NSMutableArray alloc] initWithArray:self.items copyItems:YES]; but I get the error: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Item copyWithZone:]: unrecognized selector sent to instance 0x5a74900' *** Call stack at fir...