iphone

"could not restore current frame" playing animation on iPhone

My application on iphone quit with following console message when we try to play the animation with 100 images again and again. Program received signal: “0”. warning: check_safe_call: could not restore current frame So i want to know how can i remove this crash. Am I doing anything wrong using animation? Code follows: catAnimationIma...

How to add UIImagePickerController in UiView

How to add UIImagePickerController in UiView in TabBarApplication ...

Force cancel a touch iphone

Hi, I have 4-5 uibuttons(also can use uiview instead of button) side by side next to each other. When user moves touch from one button to other(outside of self view), i want to cancel this touch and start touch for the next button(view). How to achieve this functionality? I used uiview instead of buttons kept it next to each other, h...

Xcode 3.1.4 missing Code Signing Entitlements Options?

I am on Xcode 3.1.4 and hitting the dreaded ""the executable was signed with invalid entitlements." error. I am trying to add Entitlement.plist in the BUILD option but I cannot find where to put it. This option used to exist above the "Code Signing Identity". I think it was called "Code Signing Entitlement" or something. Is this missi...

How can i display a UIAlertview On bottom portion of iphone?

hi, usually the UIAlertview appear at middle of iphone screen but i want to display it bottom of iphone. How can i do that? ...

Can I encode a subclass of NSManagedObject?

This is for an iPhone App, but I don't think that really matters. I need to send a custom object (which is managed by Core Data) over bluetooth using the iPhone's GameKit. Normally, I would just use an NSKeyedArchiver to package up the object as a data object and ship it over the line, then unarchive the object and I'm done. Of course, I...

How much a UIImageView rotated?

I have an UIImageView that is being pinched, zoomed, rotated, etc. When the user ends transforming the image he presses the DONE button and I have to figure out how much the object was scaled and rotated. All I know is the angle and scale of the object before the user started modifying it. Now I need the new angle and scale. How to do ...

Can you make custom events with UIControlEventApplicationReserved?

I have written a subclass of UIControl that tracks a number of gestures that are of interest to me. In the documentation for the UIControlEvents enumeration, it says that there is a range of event numbers called UIControlEventApplicationReserved that is "available for application use." Does this mean that I am free to use this range of...

Regarding iPhone Application Design Document

Hi, I am just entered into iPhone Application Development. I have to start the work on iPhone Application. And i have some Requirements Specification for particular application. Now for a starting phase i want to prepare a Design Document for that application. So, anyone can suggest me what i have to include in any mobile or iPhone Appl...

Default.png won't display, iPhone

I have a really standard splash screen, just a simple Default.png, but for whatever reason, no matter what I try, it simply will not load. Is there any way to fix this and/or a way to set a property in tw info.plist to directly call a custom image? Thank you! ...

iPhone SDK - How do you make a UIView that responds to audio input?

I am developing an app that uses Core Graphics and Audio Queue Services to generate an image that changes with the input from the iPhone's mic.  Some sort of interaction between Core Graphics and Audio Queue Services is killing my frame rate, keeping it at about 10 fps no matter what I do.  Profiling with Instruments tells me that my pro...

What does that mean? "mi_cmd_stack_list_frames: Not enough frames in stack."

Debugger is telling me this, when I run my app on device: Program received signal: “EXC_BAD_ACCESS”. mi_cmd_stack_list_frames: Not enough frames in stack. mi_cmd_stack_list_frames: Not enough frames in stack. I don't get information about where in code that happens. That's all I get. Any idea what that could mean? The app crashes af...

Read directories names within a directory in an iPhone bundle?

Is it possible for an iPhone app to read the names of groups/directories/folders within its bundle? E.g. I have my Resources folder and within that folders named Images1 and Images2. Is there a way for the app to 'discover' Images1 and Images2? ...

MyApp_Prefix.pch warning:

The compiler complains about this, after I activated all kind of warnings: #ifdef __OBJC__ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #endif warning: #import is a GCC extension What does that mean? ...

warning: -Wuninitialized is not supported without -O

The compiler complains about this, after I activated all kind of warnings: For MyApp_Prefix.pch the compiler says: warning: -Wuninitialized is not supported without -O What does that mean? ...

warning: passing argument 1 of 'numberWithBool:' with different width due to prototype

The compiler complains about this, after I activated all kind of warnings: I create an NSNumber like this: NSNumber *num = [NSNumber numberWithBool:YES]; warning: passing argument 1 of 'numberWithBool:' with different width due to prototype it complains about the value I provided. What's wrong with "YES"? What does that mean? ...

warning: passing argument 3 of 'objc_setProperty' as signed due to prototype

The compiler complains about this, after I activated all kind of warnings: I have an app delegate like this: #import <UIKit/UIKit.h> @class MyViewController; @interface TestAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; MyViewController *myViewController; } @property (nonatomic, retain) IBOutlet UIWindow ...

How to switch to next view when button is pressed iPhone?

Hello, here is a iPhone programming beginner's question: How do I get to another view by pressing a button in my main view? I have the following function which is executed when I press a button, and debugging it, he passes there, but my "Warning" view does not show up: -(IBAction) showWarningView:(id)sender { if(self.showWarning ...

Developping for iphone under unix

Hi guys My question is very simple : Is there any solution to install xCode, or equivalent, under unix OS, like ubuntu ? Indeed, i don't want to buy an expensive macbook to develop my private iPhone applications. Thanks for your hints. Martin ...

Does it matter to have an class without members?

I have a class with only class methods (utility stuff), so my interface is like: @interface MyUtils : NSObject { } Xcode doesn't like it and says: warning: struct has no named members So I have to create a nonsense instance variable? My code works fine, though... I just activated every kind of warning for the compiler. ...