When i move the slider it crashes the app. i know it is something to do with the argument i am passing to maxProcess method. it works fine if i take this out. but i need it to update the newEvent objects instance variable. Any ideas. This is what i have been told in another forum but i don;t know how to do this
"this code declares a new...
My app runs fine in the simulator, but when running on the device, it terminates with SIGABRT. I have narrowed it down to the following code:
- (void)loadImage {
int imageNumber = currentImageNumber;
// check to see if the image has already been downloaded.
// if not, get it and add it to an array
if ([imageData count] < totalNumberOfIm...
I am trying to build an application through which i would have some control on the content of the mail like one should be able to parse the xml he/she just received attached in an Email.
How should i do it ?? Any idea??
Thanks,
...
Hi,
I am trying to play large (20-60mb) local mp3 files with AVAudioPlayer however it takes a looong time for the audio to actually start. Sometimes as long as 3-5secs. I have also noticed that it seems to lock up the UI as well so i cant even display some kind of activity indicator.
I have tried the prepareToPlay method with no succes...
In my iPhone app, I have a appSettings.plist. This allows me, but also others to simply change some parameters. One of the parameters is the predominant color of the app. The .plist looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd...
i want to store my data (which i am gathering through my app) to xml and then send it to my webspace.
How should i do it??
Thanks
...
How frequently touch events are supplied to the top-most application?
For instance, touch, drag finger around screen (for 1 second), release <- how many discrete samples do i get?
edit: What's the maximum? And will it be different for different generations of iPhone and different OS versions?
...
I'm not getting any location callbacks on either sim or device. I've got this code being called:
- (void)startLocationCallbacks: (NSObject*) ignore
{
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBestForNavigation;
locationManager.distanceFilter = MINIMUM_METERS;
[locationManager startUpd...
Hi guys,
i'm trying to insert some data on a database using this code:
-(void)insertLocationOnDatabase:(LocationType *)aLocation {
sqlite3_stmt *stmt;
int location = [aLocation.locationID intValue];
NSLog(@"Location ID: %i", location);
const char *sql = "insert into tbl_location values (?,?,?,?)";
if (sqlite3_prepare...
I need two buttons on the left side of a nav bar. The only way I've figured out how to do that is by first putting them into a UIToolbar and then setting the leftBarButtonItem to that.
If I do this it works as normal (you can see it highlight when tapped):
UIBarButtonItem* myBtn = [[UIBarButtonItem alloc] initWithTitle:@"Button" style:...
There are 120 images which are 360-degree round shootings of a product showcase, each is 3 degree apart, size 320 x 320 pixels. Displaying the images continuously will give the effect of rotating the product in front of the user.
So far, the performance is far from satisfactory, there is delay in loading and when the user touch to slide...
I am creating a magazine app. I am displaying each page of my magazine in a UIWebView. The webview doesn't fill the screen with the PDF though. There is a border around it. How can I display it fullscreen?
...
refer to http://stackoverflow.com/questions/1746378/cgpointmake-explaination-needed
Correct me if I am wrong, in the implementation of CGPointMake, CGPoint p; declare a local variable of a struct, which should should be freed after leaving the scope. But why the function can return the value without risk?
Anyway, assume that implementa...
I would like to launch the Contacts.app when the user needs to add a contact. My app already reads from the contact API. I would rather not re-implement functionality if I can avoid it. I am targeting iOS 4.0 and above.
...
i am using flite engine to generate sound n iphone everything is fine now
is it possible to change the pitch of sound lets say i want to put my sound ... can i do that??
...
What I'm trying to do is output a masked texture on an iPhone using OpenGL ES 1.1. The default combining behavior seems to work to my advantage until I actually want to vary the ALPHA of the final result!
The 'a' (Alpha) float variable has no effect here: (Everything else outputs fine, it's masked and drawing nicely aside from the alp...
I have a lengthy operation O that is called through a NSInvocationOperation, itself scheduled by adding it to a NSOperationQueue so that it runs asynchronously. That lengthy operation O is invoked in two different cases in my app.
In case A, operation O is invoked as a result of tapping some widget in some view. As soon as the widget is...
How to get current playing time of MPMoviePlayerViewController after seeking ? Originally I am using a NSTimer to count the time played, but after scrubbing / seeking, the time recorded does not count the amount of time seeked.
Any way to know current time of video or amount of time scrubbed ?
...
We are building a mobile app, specifically an android app, and it needs to connect to the server to get data. It is not like twitter, we do not need to expose some kind of public apis. We just need to keep it simple and safe because user will exchange some private data with the server.
My questions is mainly on authentication. Our serve...
My code was successfully run into the ios 3.1.3 now i update the sdk to 4.1 and code is not woking i got the error.
Undefined symbols:
"_OBJC_CLASS_$_AdMobView", referenced from:
objc-class-ref-to-AdMobView in supportViewController.o
objc-class-ref-to-AdMobView in FindViewController.o
objc-class-ref-to-AdMobView in InformationD...