Howdy,
I have an issue with populating coredata from an XML load. From my limited knowledge it appears to be a memory issue, I am looking squarely at the managed object constructer in the for loop in the pseudo-code below!
We can assume 'myManagedStore' is a valid coredata object with an NSSet of "managedObjects" and that 'myNSSetOfIt...
Hi
First time doing this, hope you can help.
What the best way of playing background music for my iPad game?
1b. How do I do this?
Whats the best format of having that music file in for playback?
Will this this song happily play through the entire game, no interruptions when changing view?
How can I loop this music?
Thanks.
...
First of all is the 5MB limit, that is supposed to be the limit for offline storage, related to the data storage of files specified in MANIFEST or is that related to the data in database that can be stored?
Either way is there such a limit in real and if so can it be changed dynamically from inside the program?
...
I have an OpenGL view that renders a 3D model. It is a basic modification on Apples EAGLView. This view is added to a controller's .view and displayed with presentModalViewController: . I would like to do all of the model loading, and OpenGL state configuration in a background thread at app launch before the user chooses to display the v...
I've been following a tutorial using Cocos2d and I've been learning a lot.
I got to the part inserting a "Game over" bit.
Previously it would just NSLog "You lose".
I went over to a different project and started something else. Then I came back and removed the NSLog line and changed it for the GameOverScene (replaceScene).
However, ...
I have a UIImageView that I have already set an image to. This works fine, but later, I want to change that image. So, I set a new image for the image property, but when I view the app, that image is set as a second image over the first:
UIImageView *image;
image = (UIImageView *)[cell viewWithTag:0];
image.image = [UIImage imageNamed...
This is really strange, I'm not sure what could be causing the code to work perfectly half of the time and not the other half. I'm using TBXML to parse a twitter feed. I need to get the created_at date in the twitter feed which is passed like <created_at>Tue Feb 02 23:30:49 +0000 2010</created_at>. So i store these values and then pas...
I need to make multiple asynchronous service calls in the application:didFinishLaunchingWithOptions: method from my application delegate in order to retrieve some data from a service to be used across various controllers in my app. I have control over the service, and I've designed the API to be as RESTful as possible, so I need to make ...
Hello, I'm trying to make a query based on the user location. The thing is that I can only query upon the first location result, with the lat/lon result as the query parameter. How do I make sure I get the best result of a user location and then execute the sqlite query?
Thanks in advance!
...
my program needs to take a prepopulated sql database and then save the records to the app's database. Unfortunately for some reason the application quits in this method in the application delegate:
#pragma mark -
#pragma mark Core Data stack
- (NSManagedObjectModel *)managedObjectModel {
if (managedObjectModel_ != nil) {
ret...
I am writing an app the is pretty much always going to be open (hardly ever would run in background) and I want to be able to alert the user with a sound, vibrating the phone, and showing an alert message when there is a state change. The problem I am having is that when I use the UIAlertView, the AlertView seems to be hit or miss wheth...
Hello,
I have an existing iPhone View Controller with a corresponding view (via nib) that displays an interactive graph. The user can touch a cursor point to move along the curve and get data corresponding to the touch point.
Now, I'd like to create a new screen that is a kind of "compare" screen the combines two of these existing vie...
Hey,
I've got a couple of applications in the App Store at the moment which I've had ready after the release of iOS4. If I try and download one of these in the App store on a 3.x device, it will tell me I need to upgrade. Is there a way to make my application not do this, as I don't think I am using any API calls specific to iOS4.
I or...
I'm trying to parse an XML feed from youtube. The XML feed graphically looks like this:
To check if each of the 'tags' are being hit correctly, I used the following standard methods:
- (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName
namespaceURI:(NSString *)namespaceURI
qualifiedName:(NSString *)qName
...
I've built my app this way and everything seems to be working more or less. After hearing about the notoriously low iAd fill rate I decided that this would be the best method, but I tried googling it and i couldnt find record of anyone else implementing ads in their app like this. Does this violate the TOS?
...
I'm using CGRect to display an image. I'd like the CGRect to use the width and height of the image without me specifying it.
can this:
CGRectMake(0.0f, 40.0f, 480.0f, 280.0f);
become this:
CGRectMake(0.0f, 40.0f, myImage.width, myImage.height);
some images get distorted when I specify the parameters.
here's the code:
CGRect myIm...
On the iPad, I present a view in the "detail" side of a split view controller that is basically just a UIWebView, which loads an HTML file in the application bundle. The application supports rotation and hides/shows the "master" side of the split as appropriate.
When the UIWebView is initially loaded in landscape mode, its content seems...
Hey all, I have an array that holds all of the .aif file paths in my app, which I found by using mainBundle and resources.
This array needs to be passed down through 2 view controllers to reach where it is actually used. The problem is, it either crashes or logs something totally wrong. When I debug I get an EXC_BAD_ACCESS note at the c...
Has anybody come across this problem? I have created an UIScrollView of images, much like the Camera Roll. Each image can be pinched to zoom in and out. Got my code working great on the simulator. I put the code on my device (both an iPhone and an iPod Touch) and nothing. The images don't pinch, nothing happens. Am I missing someth...
Just starting off on iPhone development and I'm looking for some input as to the best platform/framework upon which to build at the moment. I've looked at various options a year or so ago such as cocos2d, unity, and others, however I'm looking for some more current input from those in the trenches.
I am starting on an RTS Diablo-esque ...