Hi there
Basically when I have an application in XCode and I change the sqlite/coredata database and try to run it on a device that already has the application on it then the app crashes. I have to remove the app and reinstall it.
I have updated the database on an app that has already been submitted to the app store. There has been abo...
How can I get the content (raw/sample data) of an iPod-track? I've seen apps like "Ringtone Designer" and iMovie which can do it, but I have no idea which api they use or what they do. I could imagine that iMovie uses private apis, but "Ringtone Designer" is a third-party app, so it must be possible with the public api-functions.
...
I've added my database populate code to the thread method. However, sometimes they may not be any data to show in the graph. I don't want to run the query twice, once before to check if theres any data and I don't want to pre-populate the graph points prior to the thread function.
I've marked where I have my populate code with HERE bel...
hello,
i'm using box2d 2.1.2 with cocos2d 0.99.4
in my world, everything is light,
there is no sensation about dropping a stone or a box !!
everything falling slowly at the same speed
b2Vec2 gravity;
gravity.Set(0.0f, -10.0f);
bool doSleep = true;
world = new b2World(gravity, doSleep);
and my objects :
b2BodyDef *TBodyDef = new...
Hi, i came across the following piece of code which loads everything from photo album but what should i do if i only wanted to load the video type in the photo album on a table?
thanks in advance.
void (^assetEnumerator)(struct ALAsset *,NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop){
if(result != nil){
...
Is there a way to set the maximum zoom level on a UIImageView?
...
I have a special class that manages gestures and other things. It is strongly targeted towards iPhone. On the iPad, I need a 90% different behavior of that class, so I want to split MyController into MyController_iPhone and MyController_iPad.
How would I alloc-init the appropriate class depending on if it's the iPad or iPhone?
...
I wrote a small application and tried running it on my device. I had written a function and tried calling it in application did finish launching. It didn't get called every time I ran my app from the homescreen. Then someone told me that applicationdidFinishLaunching doesn't get called every time you launch your app from the homescreen. ...
Having failed in trying to puzzle together different sources to any form of coherent approach or concept I turn, once again to the learned people of StackOverflow. My problem is quite specific and maybe that's why I'm having trouble finding information that fits or maybe I just suck at searching. Either way, here goes.
I am building an ...
Hello,
I currently have the need to execute prolog code in an application I am making. I am aware that Apple probably never would allow something like this in the App Store, but that is not the intention either. This is more a private project that will never reach the App Store.
Purpose
In this case prolog is used to describe an objec...
This ugly blue one with one or two buttons, that takes a title and needs to be tapped away before the user can proceed...
...
While working on an universal binary for iPhone / iPad, I've been asking my self often: Is this really so good? I believe the iPhone and iPod touch devices will simply download the whole package, including all the irrelevant iPad content. Since my app is graphics-heavy, the iPhone and iPod touch users would suffer from about 10 MB of irr...
I've found this code, here:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
str = [NSString stringWithString:@"Running as an iPad application"];
} else {
str = [NSString stringWithString:
@"Running as an iPhone/iPod touch application"];
}
UIAlertView *alert = [[UIAlertView alloc...
Please, take a look at my code bellow. This part pops top view controller (usually, the same ArticleControllerController) from the stack (I found that the problem stays the same no matter if I pop single controller or pop to the root controller), creates new one and adds to the stack.
The problem is, that its retain count never goes to ...
I get the below error many times and this error makes it impossible to run my application unless i restart the whole MAC. This is not caused due to changes in code.
ERROR :
"Couldn't register com.yourcompany. with the bootstrap server.Error: unknown error code.This generally means that another instance of this process was already runn...
i want to implement auto lock for a specific idle time interval.
How can i increase iphone autolock idle time feature programmatically ?
Thanks
...
Hello Good People,
I'm a beginning developer who has done a bit of audio work. I was just wondering what is the approach to starting to work with audio on the iphone platform.
I envision this as somehow getting a vector of numbers which represent the samples in an audio track. Then programmatically running algorithms on that vector (o...
How can I determine when an action sheet has closed or has been dismissed ?
I've followed this topic http://stackoverflow.com/questions/349858/fitting-a-uidatepicker-into-a-uiactionsheet and added a picker view to an action sheet. However the didSelectRow event is called while action sheet is still open.
I want to update some data in ...
On iPhone you have something like this:
static NSString *Celldentifier = @"Section1_Cell";
UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier: CellIdentifier];
where the CellIdentifier is used to dequeue cells of a specific 'type' of cells. So if you have more than one sections in a tableview and ...
Hello,
Just a quick question on Core Location, I'm trying to calculate the distance between two points, code is below:
-(void)locationChange:(CLLocation *)newLocation:(CLLocation *)oldLocation
{
// Configure the new event with information from the location.
CLLocationCoordinate2D newCoordinate = [newLocation coo...