xcode

How can I tell xCode to recheck project resources that have been modified?

I'm working with a designer friend on an iPhone app and he likes to refine all sorts of images relating to the project we're working on. All these images have been added to the project previously (and added to the project folder by xcode) and then are modified in their new location. When I preview the images in xCode, the updated images ...

Declare in .h file? iPhone SDK

How would I declare this code in the header file (.h) in iPhone SDK? - (void) save { UIGraphicsBeginImageContext(self.view.frame.size);  [self.view.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedP...

Clang static analyzer configuration in Xcode 3.2

Hello, There are times when I just want to run static analyzer on a certain group of code in an Xcode project, but not all of the source files. Is there any way to configure this using Xcode 3.2? ...

How to hide camera tools in uiimagepickerview iphone

How to hide camera tools in uiimagepickerview iphone ...

How to handle duplicate symbol error from 3rd party libraries?

I have two 3rd party libraries that seem to use the same class. That should be fine but I'm getting this type of error when building: ld: duplicate symbol .objc_class_name_CJSONScanner in /Users/myappOne/TapjoyConnect/Frameworks/libTapjoyConnectSimulatorRewardInstall_Ads_Pinch.a(CJSONScanner.o) and /Developer/Projects/BuildOutput/Debug...

UITableView does not scroll to cell

I am trying to scroll my tableview to the 2nd cell: [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0] atScrollPosition:UITableViewScrollPositionNone animated:NO]; I get the error: *** Terminating app due to uncaught except...

Is it possible to navigate to the end of the current scope in some Objective-C using the keyboard and XCode?

In Textmate and even under Visual Studio, it's possible to use a keyboard shortcut to navigate to the end of the current scope. And for bonus points, in some editors there is a special combo to navigate to the next method in a source file. I've taken a look at the keybindings section and can't seem to find anything relevant. Can I i...

How to add two textField value

hi .. i want to take two textfields values and add the values and show them into another textField. How to do this programatically. Thanks in advance ...

Xcode Subproject Debug stepping

In my XCode project I link to a couple subprojects (I added those project files, added the lib file to the build phase, included its dir for the header search path). I am trying to debug my app and I'd like to step into a function into one of the subprojects, but Xcode doesn't let me. Do I need to do some other step to get this to work...

Looking for Reachability (2.0) Use Case Validation

There is so much info out there on using Apple's Reachability example, and so much is conflicting. I'm trying to find out of I'm using it (Reachability 2.0) correctly below. My App use case is this: If an internet connection is available through any means (wifi, LAN, Edge, 3G, etc.) a UIButton ("See More") is visible on various views. If...

UITableView - Color a selectede cell in table (remain colored)

Hi In my app i'm using a UITableViewController ("grouped style") which in one of its section I want the user to be able to see what he had selected by making this cell colored and other "uncolored". Doing it by updating all cells' background color and reloading table data, each time user touches a cell (in didSelectRowAtIndexPath:) Pr...

XCode: compiling doesn't always replace plist?

I have an application and I will sometimes just change the plist, say to change the version number. Sometimes I'll actually make a change to the code, AND the version number....in the latter case, SOMETIMES the version number of the resulting app will change, in the former it will never change. The only way I've found that surely does it...

Strange XCode debugger behavior with UITableView datasource

Hey guys. I've got a perplexing issue. In my subclassed UITableViewController my datasource methods lose their tableview reference depending on lines of code I put inside the method. For example, in this code block: - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 3; } ...

Minimum OS version number, iPhone app

Hi all I've built an iPhone app which is live in the app-store. When originally submitting the app it showed up in App Store as requiring iPhone OS 3.1.3. When later updating the app I made sure my settings in Xcode for the target for the app store build had the Base SDK version set to 3.1.3 and the Deployment Target version set to 3.0,...

How do I disable Xcode static analysis (Clang) messages?

I'd like my Xcode project to go through a Build And Analyze step without generating any errors, warnings, or static analysis messages. A problem with this is that my project includes libraries that generate (possibly innocuous) warnings and static analysis messages. I can't find a way to disable specific Clang warnings so that "my" code...

How do you bring an Image View below a Text View on the iPad? (On the iPad)

How do you bring an Image View below a Text View on the iPad? Somehow I have an Image View on top of a Text View and you can't see the text! ...

custom UIButton with skewed area in iPhone

I want to have a button on a screen with this image. this image is transparent from its corners as you can see here. UIButton *btn=[UIButton buttonWithType:UIButtonTypeCustom]; [btn setFrame:CGRectMake(xCo, yCo, kImageSizeWidth, kImageSizeHeight)]; [btn setImage:[UIImage imageNamed:@"aboveImg.png"] forState:UIControlStateNormal]; [btn...

the page has the html element or hasn't - objective c

hi, i try to find the web page has the html element or not. i use if condition, like; if([webView stringByEvaluatingJavaScriptFromString:@"return document.getElementById('txtOgR_no');"] != nil) {...} how can i check is there a element in page named "txtOgr_No" ? ...

How to call itunes from my iphone app with search for a known CD.

here is my code: -(IBAction)itunesBuy:(id)sender{ // NSString *urlString = [[NSString alloc] initWithFormat:@"http://itunes.com/%@/%@", self.artistTerm,self.titleTerm]; NSString *urlString = [[NSString alloc] initWithFormat:@"http://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?albumTerm=%@", self.titleTerm];...

Cocoa Core data: cannot save Created Items in NSTableview

Hello, I'm am a beginner in mac os x development and am trying to get started with all this. Here is my problem : I've create a non-document based cocoa app using core data as storage. I've added an entity and attributes to the xdatamodel. In IB i've created an NSArrayController and linked it properly. I've created an nstableview binde...