In particular I want to guarantee that the formatting of a number uses , (commmas) for separating digits regardless of the current locale of the device.
NSNumberFormatter *numFormatter = [[NSNumberFormatter alloc] init];
[numFormatter setLocal:@"??????"]
...
After configuring my iPhone app for unit testing, I belatedly noticed this warning in the documentation:
iPhone OS Unit Testing Support: Unit
tests are not supported for iPhone
applications.
As some of the other Xcode documentation regarding unit testing is out of date...is this still the case?
...
I am making a camera app which includes digital zoom. I have a slider (zoomSlider) that has a minimum value of 1 and a maximum value of 4. When the user taps the camera button, it takes a picture, and then I crop it for the zooming. I have two problems:
How do I crop the exact middle of the image? (eg. 2x zoom, Rect would be centered wi...
Hi,
I am trying to run a new Iphone app, and altough it works fine on simulator, on actual device, it immediately exits.
Also when I run from SSh I get killed error.
I try to run an empty, blank, new project, again it exits immediately. The device is OS 3.0, and compiled in same version, also I have tried to compile for SDK 2.0 but no...
Basically what I want to do is to use Cocoa's autocorrection feature on NSString.
E.g. [string autocorrect] would return what it text field shows in a popup
Is it possible?
...
I have an FCGI application that have to stream audio via HTTP. The audio is composed of 1 to 3 files mixed together. Everything is in plain C.
I'd like to know what will be a good way or library to read the audio files by 1 second chunks, mix them and encode them as an HTTP friendly format.
I need to read the files by chunks because I ...
Hi everyone,
I am trying to customize the font of a uitableviewcell using the following code for when the tableview is populated.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"MyIdentifier";
UITableViewCell *cell = [tableView dequeueRe...
For a UIPickerView, when do you use a plist for the datasource? For example, if I just wanted the Array 1-100, is that something that should be in a plist, or something that should be created in viewDidLoad?
Also, I notice in the UIPickerView in the Clock app on the iPhone, the numbers move, but the words hours and seconds stay the sam...
I have a WSDL service that is working fine with .NET using HTTP POST Bindings, rather than using SOAP. The HTTP Post request returns the raw XML for the objects etc. removing all the overhead of SOAP.
I would like to use this within the iPhone. I have located the tool at wsdl2objc tool (http://code.google.com/p/wsdl2objc/) however it...
What's the best method for editing and saving a JSON file on the iPhone/iPod? I know there are libraries that allow you to easily read JSON data, but are there any that allow you to generate it?
...
I can detect that the iPhone went to sleep and came back from sleep, by using the applicationWillResignActive and applicationDidBecomeActive. But how do I find out what kind of interrupt it was. I am making an audio player application, and need to keep the audio playing when the iPhone goes to sleep (which I know how to do). But I need t...
((UIImageView*)[dsry objectAtIndex:0]).transform = CGAffineTransformMakeRotation(1.57*2);
((UIImageView*)[dsry objectAtIndex:0]).transform = CGAffineTransformMakeScale(.5,.5);
Just one of these works at a time. How can I save a transformation and then apply another?
Cheers
...
Hello,
I'm trying to make a local high scores board for my app, but with no success till now.
I searched anywhere for a local high score board code but didn't found any.
What is the best why to write such a thing?
If you can please post example code.
Thanks.
...
My app design requires the same scrolling functionality found in the iPhone's native Photos app when browsing photos in full screen. Specifically:
Each view snaps into place as the view is swiped
Scrolling happens in only one direction
Rotating the iPhone rotates the entire scrolling region as well such that the frame of each subview (...
hello ! can someone tell me how i can select something in an uiwebview with code ?
...
I'm trying to figure out whether or not the current locale uses a 12 hour or a 24 hour clock. I've been checking out NSDateFormater to no avail. Any leads?
Thanks!
...
Hi,
I can deploy an application via SSH to a jailbroken device. I sign it with ldid, but when I try to run it i get:
dyld: Symbol not found: _OBJC_CLASS_$_PLCameraController
Referenced from: /private/var/stash/Applications.pwn/iPhoneCam.app/iPhoneCam
Expected in: flat namespace
Trace/BPT trap
error. The code I run is;
- (void)appli...
I'm loading a view in my app with the following code:
- (void)showPicker {
ImagePickerViewController *imagePickerView = [[ImagePickerViewController alloc] initWithNibName:@"ImagePickerViewController" bundle:nil];
[self.navigationController presentModalViewController:imagePickerView animated:YES];
}
How can I load it with a curl up/cu...
Hi I submitted my first application to the appStore http://itunes.apple.com/at/app/section-control/id343824642?mt=8
This displays "English" as Languages (Sprachen in German) in the "Overview".
And that is correct in this case.
I think this comes from the fact that I don't have localized resources in my application.
Which is question on...
Hello,
i want to disable text selection on a UITextView. Until now what i've
already done is:
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender {
[UIMenuController sharedMenuController].menuVisible = NO;
if (action == @selector(paste:))
return NO;
if (action == @selector(select:))
...