objective-c

Custom UISlider Image disappearing?

Hello all i have a custom image to replace the UISLider defult button image, all works fine image shows, it does not clip off. The problem is when i use the slider to move up and down the image dissapears and some how doesnt show up anymore only sometimes. could someone have a fix? CGRect rect = CGRectMake(16.0, 390.0, 297.0, 35.0); sli...

Objective C, Core Data issue

I'm following a tutorial in "More iPhone 3 Development. In the code, they have a line: NSManagedObjectContext *managedObjectContext = appDelegate.managedObjectContext; I get an error: "accessing unknown 'managedObjectContext' getter method" on that line. I've downloaded his sample code and his program runs fine with that line of code....

Clear trailing 0's on a double?

I have a double thats got a value of something like 0.50000 but I just want 0.5 - Is there any way to get rid of those trailing 0's? :) ...

problem getting the height of a UIScrollView

hi, i am setting the size of a UIScrollView in viewDidLoad: but when I try to get the height of it, i am getting 0 in the console here is my code: - (void)viewDidLoad { [scrollView setContentSize:CGSizeMake(320,500)]; NSLog(@"scrollView: %@", scrollView); NSLog(@"scrollView.contentSize.height: %i", scrollView.contentSize....

How big of a jump will it be to go from C# to Objective C

How hard will it be to transfer from my existing expertise in C# to building apps for the iPad/iPhone in Objective C? ...

How to make a cell on a UITableView not selectable?

I have a cell that I am inserting to the top of a UITableView. How can I make sure that when the user clicks on the cell, it doesn't show the blue selected indicator? ...

Custom logo on top of UINavigationBar?

I've read plenty of requests about a full-on custom UINavigationBar background, but what I want is to overlay a logo on the default UINavigationBar instead of text. Preferably, I'd like to apply it to a subclass of UINavigationBar called CustomNavigationBar. Thanks in advance. ...

Array of ImageView

hi, I m making a Shooting game, in that I want an array of ImageViews , so that for each new level the bullets can be Disappear and the view will be shown from the initial level. SO if Any one know how to store imageviews in an array kindly tell me... regards viral.. ...

Objective C: "_main", referenced from: Start in crt1.3.1.o error

Hi all, Trying to compile a iPhone/iPad application with SDK3.2 and am getting this error: Undefined symbols: "_main", referenced from: Start in crt1.10.5.o Symbol(s) not found Collect2: Id returned 1 exit status I think it's telling me that it's somehow trying to work with code from another SDK but searching the web has not provide...

PLCameraController is not adding in viewcontroller

Hi, I've declared PLCameraContoller instance in my AppDelegate class as:- self.cameraController = [PLCameraController performSelector:@selector(sharedInstance)]; [cameraController setDelegate:self]; And I'm accessing it in one of my viewcontroller class as:- del = [[UIApplication sharedApplication] delegate]; UIView *previewView = [d...

NSView -(void)keyDown in console program

I'm not getting the -(void)keyDown callback on my inherited NSOpenGLView (note that mouseMoved does not work either though I do setAcceptsMouseMovedEvents:YES, but that is not an issue yet). It implements - (BOOL)acceptsFirstResponder { return YES; } but still no luck. My knowledgeable friend implied that it might have something t...

Downloading problem in InApp Purchase

Hi, I have completed InApp purchase but when i using it on iPhone to download that time I am getting the message that "Image hasn't downloaded". Means I am getting problem to download the product.So help me out to solve this problem Thnx Ritesh ...

Customizing Section indexes in UITableView in iphone application

Hello ! Every one. Does any one have tried to customize default section index displayed in UITableView. I want to modify the appearance of UITableView SectionIndex. Is it possible to customize it ? Is there any delegate methods available for this ? What delegate methods should I use - if above question's answer is yes? ...

Building a NSPredicate for a filter

Hi, Just wondering what the best way to build a NSPredicate is if some filters are optional? This is basically for a filter, so if some options aren't selected I don't to filter by them eg. If I have option1 and option2 set for the filter. NSPredicate* predicate = [NSPredicate predicateWithFormat:@"option1 = %@ AND option2 = %@] .......

populating section titles from an array

is this possible to do , or do i have to do it all manually with if statements? something like return [sectionTitles objectAtIndex:indexPath.section]; Thanks Richard ...

Calling view method on timer?

I have setup a view and I want to cycle the color of some text on that view using a timer. Is there a timer method for a view that gets called (or I can setup to get called) on a regular basis? ...

NSOperation and UIKit problem

Hello guys! I am doing my download with an object which was inherited from NSOperation. I have read the documentation and when my operation finished I must call the [self.delegate performSelectorOnMainThread:@selector(operationDidFinish:) withObject:self waitUntilDone:YES]; method. It needs to be called on the main thread, because th...

Darkening UIView while flipping over using UIViewAnimationTransitionFlipFromRight

I'm using a standard animation block to flip over from one view to another, like this: [UIView beginAnimations:@"FlipAnimation" context:self]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:NO]; [UIView setAnimationBeginsFromCurrentState:NO]; [containerView exchangeSubviewAtIndex:1 withSubv...

iPhone: How to get each item in an array (for UITableview) to "link" to another table view.

Hi there, I have a table on my iPhone application. It works—it gets data from an array and displays it on the application. I now want to be able to add some navigation functionality to each item of the array (i.e. each item on the table). How would I do this? My current Objective-C for the array: - (void)viewDidLoad { arryClientSide ...

How to programmatically detect Mac OS X Server Edition?

Is anybody knows any API that can help to distinguish Mac OS X "Server edition" from "Desktop edition"? My application should know on which edition of Mac OS X it currently running. (Server or Desktop) ...