I have an Excel file with about 60 rows and 4 columns to convert into a test.plist file. I wrote a csv2xml parser and generated the plist but XCode refuses to recognize it when I added test.plist to the project. Double-clicking on the file inside XCode reveals this error:
The document test.plist cannot be opened. Conversion of string...
Hi, I've created a Beta ad hoc delivery profile, and when I press 'build and run' on the device in beta mode, my app crashes after I press a button.
However, when I use the app in debug mode (on the device) it works fine. It also works fine in the simulator and on the device in beta mode (when it's not connected to XCode)
Any ideas wha...
I see how to solve the problem but it bothers me that I don't understand why this doesn't work. I have a UIViewController subclass that uses Core Data, so it needs the NSManagedObjectContext. The controller is loaded from a nib file where it's placed under a navigation controller which is inside a tab controller.
I tried doing this in i...
I'm calling setNeedsDisplayInRect from an NSTimer function every two seconds. This works perfectly, and draws a square in a random position, with a random color. However, in some circumstances I would like to draw a square x number of times in the NSTimer function (using a for loop) - but, after numerous error testing it seems that drawR...
I have an Xcode project (for an iPhone application) that uses cocos2d. I have cocos2d set up as a dependent project, so it builds alongside my project.
Now I need to set a compiler flag to Cocos, and I can't find where to do it.
I tried setting the compiler flag in my build settings, but it doesn't propagate to the dependent projects. ...
The below exception is thrown on the iPhone simulator when attempting to save a Core Data SQLite store after deleting existing records using [managedObjectContext deleteObject:object];
NSInternalInconsistencyException,
reason: binding not implemented for
this SQLType 7
The entity for the records being deleted consists of just s...
My iPhone app shows the user some massive images, I've successfully tiled them and used a UIScrollView to allow them to pan around and look at parts of it in detail. Now I want to draw points above that background image and have them move around when the user pans/zooms, essentially like placing a pin on a notice board. I don't want to m...
Hello!
I have a TabBar in my application and I do this in my AppDelegate:
...
test2ViewController = [[Test1ViewController alloc] init];
...
navigationTest2Controller = [[UINavigationController alloc] initWithRootViewController:test2ViewController];
NSArray *myControllers = [NSArray arrayWithObjects:..., navigationTest2Controller, nil]...
If i am palying a sound using the AVAudioPlayer in the AVFoundation framework (I can already do this), is there any way to detect the current level of the audio playing, like a VU meter that is listening to the mp3 playing.
I don't want to detect the audio of the mic, just the file playing.
I want to animate a mouth to prerecorded audi...
I have the following UITableView DataSource method:
- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index
On some items (i.e. section index titles) I just want to return "nothing", so that the table view won't jump to any section. I tried to return nil, but I get the "R...
I have code that allows me to determine the MAC address and the IP address of the WiFi connection on the iPhone, but I can't figure out how to get the Subnet Mask and Router address for the connection. Can anyone point me in the right direction here?
...
My iPhone application supports a proprietary network protocol using the CocoaAsyncSocket library. I need to be able to send a network message out when my iPhone application is closed. The code that sends the message is getting called from the app delegate, but the application shuts down before the message actually goes out. Is there a wa...
I'm looking to port an existing game of my own to from SDL 1.2 on linux SDL 1.3 on the iphone. While I'm fairly happy that SDL 1.3 provides the features I want I do not know if this will damage my chances off this getting accepted by apple.
Has anyone had an SDL app accepted? If anyone has had one rejected, were the reasons due to SDL?
...
I have two arrays used in a small game.
If the player gets a score above a certain value their name & score gets output via
an UILabel.
NSArray *namesArray = [mainArray objectForKey:@"names"];
NSArray *highScoresArray = [mainArray objectForKey:@"scores"];
I need the UILabels to display with the highest score in descending order,...
I'd like to have a UIViewController class, with the UI created in Interface Builder within a static library I am building.
As an analogy - In the iPhone SDK, I can access the address book through a low-level API, and the AddressBookUI api. I am doing something similar.
There's doesn't seem to be a way to include XIBs in a static librar...
hi , i want change title's color of navigation controller but i dont know why doesn't work !
UILabel *label = [[[UILabel alloc] init] autorelease];
label.textColor = [UIColor yellowColor];
self.navigationItem.titleView = label;
...
I am having some trouble getting my application to properly resize the text of UILabels when the user does a swipe to delete or other type of delete. Currently, the delete button is covering up the text that is in the cell (if it is really long). I would like for them to operate like how SMS (move clipped text down a line) or iPod (del...
Hello,
I'm using the XMLRPC framework (by Eric Czarny) for iPhone to communicate with my server. I am using the XMLRPCConnection class (which is basically an extension of NSURLConnection) to create asynchrnous HTTP requests to fetch my data. The connectionDidFinishLoading method sends one and the same NSNotification each time data has b...
My question is similar to this one, but I need further clarification. I often get exceptions during code like this:
NSError* error;
if (![managedObjectContext save:&error]) {
NSLog(@"Failed to save to data store: %@", [error localizedDescription]);
}
However, when I put a breakpoint in objc_exception_throw, I can find out that an ...
Hi,
I've developed my application using my 3G device to test with. Upon giving this to a friend to test, he's noticed that it crashes..I've had a look at the crash log, but it's not much use except for the "EXC_BAD_ACCESS" statement after a few memory warnings.
On my device, I can use the imagePicker lots, and each time a photo is take...