iphone

Does UIAutomation framework works on the simulator?

Hi, I am new to iPhone Automation, and UIAutomation framework introduced by iOS4. Recently I am using UIAutomation to automate testing app on iPhone Simulator via instruments but it gives me an error like "Unexpected error in -[UIATarget_0x5a20d20 frontMostApp], /SourceCache/UIAutomation_Sim/UIAutomation-37/Framework/UIATargetElements.m ...

How to let an animation finish before the next userinput is allowed

Hello . I have some UIImageViews and when the user is touching, an animation with a certain duration starts. A trigger counts ++ and with the next touch another animation starts to play. But if the user touches to fast or make a doubletouch the first animation does not finish until the last frame. I tried the "sleep()" command, but it d...

special character return nil in nsurl

I have an nsstring like this http://example.com/webservices/test?method=eventlist&title=Prog% i want to change this nsstring to nsurl, but it returns nil in nsurl.I know it return nil because of percentage at the end, but i want to add percentage with every title to get an value.. So i dont know how to do this ? Can anyone help me...

iPhone sdk, unknown error?

So I have an app that gets pixel data from a picture and then manipulates to change brightness levels via RGB values of each pixel. I have these lines of code to convert a UImage to a CGImage CGDataProviderRef dataProvider = CGImageGetDataProvider(mycgImage); CFDataRef imageData = CGDataProviderCopyData(dataProvider); void *pixels = ...

Toolbar Tint Colour Change Not changing colour of button in iOS 4 Xcode

Hi. I'm trying to make my app compatible with iOS 4 Multitasking so it stays open when the home button is pressed. At one point, a button is pressed and it opens a new view and changes the tint colour of a toolbar depending on the contents of a txt file automatically. The toolbar also has a button that is linked to an IBAction (it close...

How to parsing Aras Markup language into iphone application SDK ?

I want details of parsing a Aras Markup language into iphone application SDK ? ...

Is there a way to rotate the view after it has loaded completely?

I am looking for a way to rotate a view after the view has been load when it has been present as a modal view. I envoke my view by calling: [self presentModalViewController:cntrol animated:YES]; And in that modal view controller i am rotating via: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation...

NSString and UITouch...what in the world is going on?

I have an error with NSString. In one of my .m files I have a member called "conversions" of type NSString and within a method of that class the string is manipulated and added on to and etc. Well, when I try to Log that string in a different method that is later called, for some reason the string is printing as a UITouch object. Specifi...

How can I implement Apple's "Snooze" functionality in their Clock app?

Hello. I'm diving into iOS development and am building my own alarm clock app to become familiar with the platform and SDK. One of the API's I'm currently learning is the Local Notifications API, which I assume is the same API Apple uses to implement their alarms in their Clock app. What I don't understand is how they implement thei...

Load audio file ASAsset

How can I load a file on an ASAsset, add metadata to it and export it? Also, how may I crop it? ...

Effective way to design and manage iPhone application similar to settings

I would just like to clarify that by 'design', I mean software design, not UI design. I have an application similar to the native settings app. The problem I have with it is it doesn't follow the same clear-cut MVC style. Other apps tend to focus around displaying one kind of thing. In the case of a periodic table app for example, it's ...

pragmatically scroll UIScrollView upon shake gesture.

HI, I have a view that has three UIScrollViews on the screen. I want to randomly scroll the UIScrollViews to different positions whenever a user shakes the iPhone, but I am unable to get it done. I have implemented the following in my ViewController class to detect and handle the shake gesture, the 3 UIScrollViews also belong to the s...

How to get keyboard to disappear?

I have a text field that is being shown in a UITableViewCell and I want to be able to hide the keyboard when the user touches anywhere else on the screen aside from the text field. I know about [field resignFirstResponder];, but I don't know how to intercept touches on the background of the UITableView in order to call "resignFirstRespon...

OpenGL-ES 1.1 iPhone - Depth buffer causes magenta screen

I have an iPhone OpenGL-ES 1.1 project that renders simple 3D models. If I do not attach a depth buffer, everything renders correctly (except with no depth awareness of course). When I attach the depth buffer however, all that renders is a magenta screen. The clear color is not set to magenta. It is blue. Anyone know what is going on her...

UIImagePickerController iPhone Camera crop overlay

How do I use UIImagePickerController to show a overlay (say a small circle)? Also when the user clicks the picture, only the part of the photo inside the circle is returned, how do I go about that? ...

Disable in App sounds

Hi all, I have a question regarding sounds in my app. I need the user to be able to mute all sounds coming from my game, for example if they just want to listen to the ipod while playing. There is a similar question here http://stackoverflow.com/questions/1147555/disable-all-program-sounds but there doesnt seem to be an answer. At the ...

Bottom pop-up UIPicker?

Is the UIPicker that pops up from the bottom of the screen when an action is called just a basic UIPickerView that is coordinated in a certain way? (Like a UIActionSheet?) How would I implement that? ...

lost my iphone development certificates and private key

i lost the certificate the private key everything i did everything from scratch as per the manual that is i started with the certificate process till the end but still i have the same problem when i choose to install the application into the iphone device here is the problem message when i click into Any iphone OS device in the info i...

iPhone: GPS on custom map + CATiledLayer

Really hope someone can help me as I'm a bit stuck :S I have a custom map of an event using the CATiledLayer so users can zoom in and scroll around the map. What I would like to do now is add the functionality to let the user know where they currently are on the map. I know it can be done as I've seen an app do this before. I'm not sure...

XCode - Classes folder set aside

I have lost my classes folder in Xcode and have discovered it has been 'Set Aside' and called Classes-1. How on earth did this happen and how do I undo it. There is no Classes folder in my project at all now and Classes-1 doesn't show up in XCode, only Finder. I can do nothing with the project at all except restore to a previous snapshot...