Tag: objective c

: unrecognized selector sent to instance 0x43fe068

I am not exactly sure where this is coming from. I have a breakpoint on exceptions set but it does not show me what is really happening: libobjc.A.dylib`objc_exception_throw: 0x40308b9: pushl %ebp 0x40308ba: movl %esp, %ebp 0x40308bc: pushl %ebx 0x40308bd: pushl %edi 0x40308be: pushl %esi 0x40308bf: subl $0x7ec, %esp 0x40308c5: calll 0x40308ca ; objc_exception_throw + 17 […]

CGImage from NSURL works but not from UIImage

I have some issues applying filters to an image. The following code works perfect when using CIImage:imageWithContentsOfURL: NSInteger filterIndex = [(UITapGestureRecognizer *)sender view].tag; Filter *filter = [filters objectAtIndex:filterIndex]; CIContext *context = [CIContext contextWithOptions:nil]; CIImage *image = [CIImage imageWithContentsOfURL:[NSURL URLWithString:@”http://img.ioscake.com/objective-c/photo.jpg”]]; [filter.filter setValue:image forKey:kCIInputImageKey]; CIImage *result = [filter.filter valueForKey:kCIOutputImageKey]; CGRect extent = [result extent]; CGImageRef cgImage = […]

MPVolumeView in a UIAlertView?

Is it possibe to put an MPVolumeView in a UIAlertView? I have tried to put it inside of it, but it does not display. It may be the sizeToFit or initWithFrame: part? Is there a way of testing if the MPVolumeView is actually being created? Here’s the code I initialize both the UIAlertView and MPVolumeView […]

Want to add event in google calendar

I want to insert event in google calendar without using any third parties. Please help me if any one know it. Thanks in advance.

Why is my NSOutlineView datasource nil?

This is a follow-on question from my previous one relating to why my managedObjectContext was returning to nil. I thought the direction of the question would get buried in the old one. I now get my mangedObjectContext to not return nil and when performing [outlineView reloadData], nothing at all happens to my outlineView. I tried […]

What about this mailto: openURL might be causing a this malloc crash?

I’m using openURL to send an email w/some links. The function looks like this: // + (void) sendEmail:(NSString *) subject withBody:(NSString *)body { NSString *mailString = [NSString stringWithFormat:@”mailto:?@&subject=%@&body=%@”, [subject stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding], [body stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:mailString]]; [mailString autorelease]; } The code that calls this function looks like this: [AppNameAppDelegate sendEmail:subjectLine withBody:bodyText]; No matter what the […]

iPhone: UITabBar custom image doesn't work

I use the following UITTabBar and UINavigationBar built-in code to place my own custom image on the background of Tabbar and Navigation bar. It works great in my iPhone 3.0 application. Now, i am trying to convert my iPhone 3.0 application to iOS4.0. I ran the same project in Xcode 3.2.3(for iOS 4.0) now but […]

How to populate a custom uitableview from a textfield

I created three textfields food name, food quantity, sodium amount. When I click the submit button I’d like to update a tableview with the data from the textfields. I created an NSObject as well as established logs to show the data is being saved from the textfield and the submit will move to the tableview […]

How can i connect MySQL database with objective project?

I want to connect MySQl database with my iphone application.Read, write, save some data into the database.How can i do this.

NSFetchedResultsController crashes on objectAtIndexPath?

I’m getting a crash when trying to access an object in NSFetchedResultsController. 2013-11-10 15:15:06.568 Social[11503:70b] CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. *** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds for empty array with userInfo (null) 2013-11-10 15:15:06.570 Social[11503:70b] *** […]