iphone

Emulating the camera apps 'tap to focus'

I am trying hard to emulate the basic functionality of the built in camera app. Thus far I have become stuck on the 'tap to focus' feature. I have a UIView from which I am collecting UITouch events when a single finger is tapped on the UIView. This following method is called but the camera focus & the exposure are unchanged. -(void)han...

"InstallProhibited" received from device

Hi, I recently uptdated my iphone to IOS 4.0.1 and I cannot use the device for devolpment any more. I have the following error when xcode installs the app on the device: "InstallProhibited" received from device. The provisioning profiles are correctly installed and I could use the device for testing before the IOS update. Did anyone ...

UiViewController Loading/Unloading

Hello I have a RootViewController, and multiple ViewControllers that branch out from the same when certain buttons are pressed i.e. -(IBAction)newWorkoutButton { [self presentModalViewController:newWorkoutViewController animated:YES]; } When a user presses the back button, the current ViewController animates back to the previous ...

NSURL encoding using iso-8859-1 instead of UTF8

I need to convert a NSString to a NSURL using the iso-8859-1 instead of UTF8 (like here: http://stackoverflow.com/questions/1927127/re-encode-url-from-utf-8-encoded-to-iso-8859-1-encoded) but i don't know how to achieve it. For example: http://www.example.com/català should be http://www.example.com/catal%E1 insted of http://www....

ResignFirstResponder doesn't dismiss the keyboard (iPhone)

Hi all, I've searched through this site that I couldn't find a solution to the problem I'm facing now. Hope someone can help. I've created a UIAlertView to prompt user to enter their name in an iPhone app. UIAlertView *enterNameAlert = [[UIAlertView alloc] initWithTitle:@"Enter your name" ...

Stack trace bug aggregation software

I develop mobile applications for a variety of platforms, notably iPhone and Android. Each of these applications has a way to "phone home" with fatal crash stack traces. Up to now, we've been inspecting these by hand as needed. What I'm looking for is a piece of software that can somewhat accurately "aggregate" or "coalesce" all these...

iphone - performSelectorOnMainThread with return value

I have the following method: - (NSMutableArray *)getElements:(NSString *)theURL; And I wanted to know if there is a way to call that method using performSelectorOnMainThread so that I can get the return value. So far, I've tried with: myArray = [object performSelectorOnMainThread:@selector(getElements:) ...

iPhone Screenshots

Hi all, I've been using UIGetScreenImage() to get a screenshot of a UIImagePickerController. Basically I use the camera overlay and then when I take the screenshot, I have the image that the camera preview had been showing and my overlay on there too, which is exactly what I need. Now UIGetScreenImage() has been banned, I've not been a...

getting json_encode to not escape html entities

I send json_encoded data from my PHP server to iPhone app. Strings containing html entities, like '&' are escaped by json_encode and sent as &. I am looking to do one of two things: make json_encode not escape html entities. Doc says 'normal' mode shouldn't escape it but it doesn't work for me. Any ideas? make the iPhone app un-es...

Cococa Touch - Verifying each caracter inputed

I want to have the user type in something. And I want to verify each character inputed. How could I do this? I want it to be in real time. So as its typed its being verified and color coded. You could compare what I want to do to an programmers IDE how it checks the syntax as you type it. Any help is appreciated! ...

Why are my properties `out of scope`?

I have a method to generate some strings based on the values of some variables I get from I picker controller that is presented modally. I get the values back in the delegate method fine and I can assign them to some properties in my view controller successfully. When I call my method to do the updating, I send the values to the consol...

Xcode 4 - Connecting Outlets

This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can't get it. I right click and drag an outlet from the new referencing outlet circle, and into my header where the object is declared, but nothing happens. Has anyone used this? Thanks a lot ...

How to search and correct html tags and attributes?

In my application, I have to fix all the closing tags of the <img> tag as shown below. Instead of closing the <img> with a >, it should close with />. Is there any easy way to search for all the <img> in this text and fix the > ? (If it is closed with a /> already then there is no action required). Other question, if there is no "widt...

UIView Layout and applicationFrame

Hi everyone I am experiencing some weird behavior with my iPad app. I usually add a view to my viewController like this: CGRect bounds = [[UIScreen mainScreen] applicationFrame]; // Add Basic View UIView *myView = [[UIView alloc] initWithFrame:bounds]; myView.backgroundColor = [UIColor blackColor]; self.view = myView; [myView release];...

iPhone Build SDK 4.0 With 3.2 Target Won't Install on iPad OS 3.2

I'm building an app for iPhone/iTouch that I also want to run on iPads (not a universal app, but one that just runs on on iPad with the 1x/2x button in the lower right hand corner). I'm using iPhone SDK 4.0 and setting the following: Base SDK: 4.0 iPhone OS Deployment Target: 3.2 When I do this, I can build an app just fine and run ...

Did OS4 change how the iPhone reads code?

The code I wrote for 3.2 performs differently in OS4. Still no errors, just new bugs. So I'm initializing the imageView inside an IBAction called "randomize" that produces and random number that goes to one of 86 cases producing a resulting animation and image, the only difference in code between 0 and 86 is that final imageView.image ...

__IPHONE_OS_VERSION_MIN_REQUIRED please explain

I'm developing an app that I would like to deploy for iPhone 3.0, iPhone 4.0 and that can run on the iPad in emulate mode. I'm developing with XCode 3.2.3 and I have videos to playback. I would like to use MPMoviePlayerViewController for >= 3.2 and MPMoviePlayerController for < 3.2. If I use Class mplayerControllerClass = NSClassFrom...

iPhone & iPod Touch Orientation Problem

I have a home screen that loads content from the internet. During the application if the phone or iPod loses internet connection a UIAlertView pops up allowing users to restart the application. When they click restart the home page is pushed onto the screen. The home page only supports one orientation: portrait. It looks horrible in ...

Problem using stringByReplacingOccurancesOfString in Objective-C

Hi, I'm having some problems working with NSStrings in Objective C... the code below returns a warning, saying: "'NSString' may not respond to '-stringByReplacingOccurancesOfString:withString:" NSString* NewWord = [Word stringByReplacingOccurancesOfString:@"!" withString:@""]; What ...

How can I center my image in horizontal orientation?

I have an image view that is inside of a UIScrollView so that I can pinch & zoom. My image looks fine in portrait mode, but when I go to horizontal orientation the image is not centered. The UIScrollView is 320x460. Here is my code: - (void)viewDidLoad { [super viewDidLoad]; CGRect frame = CGRectMake(0, 0, 320, 460); self...