xcode

Help using SFHFKeychainUtils

I'm trying to use SHFHKeychainUtils in my project, but I keep getting the following error when I build: ".objc_class_name_SFHFKeychainUtils", referenced from: literal-pointer@_OBJC@_cls_refs@SFHFKeychainUtils in ResultsViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status I added Security.framework via Target > G...

Catching modal UIWebView links touches

I have a view controller and I am intercepting the touches on links within the web views it manages. My main view controller has this method. - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType { //I can see this request come in upon a touch ...

How to reset a uinavigationview to display the root controller when user clicks back to it in a tab bar app

How to reset a uinavigationview to display the root controller when user clicks back to it in a tab bar app Hey, Just wondering how I would do this. I have the navcontroller in my delegate along with the tabbar controller and Any time the user clicks to another tab I want the rootview on the navigation controller to be shown if and whe...

What is 'Kill Ring' in XCode?

In XCode there's a really neat feature called "Kill Ring" which I get a hint what its about here but I don't know how to use it!! How do you use the "Insert Kill Ring" feature in XCode? ...

Debugging in XCode

Hi folks, I am just getting into Cocoa at the moment. I have set up XCode to show the Console and Debugger when debugging. However, when I have killed the app XCode does not return to the project view. It stays in the Debug view, showing the debugger and console. Is there any way I can get it to automatically return to Project view? So...

One Root view controller , Manages all other views?

Hi guys, I was just wondering if its normal for an app to a have one root view controller which gets passed other view controllers and switches betwen them ? - in other words there is one view controller which switches between all other views. So one root controller manages all the other views ( so in a large application for the sake o...

iPhone view navigation - any clever ideas?

Hi there, I have an app that is built starting from a tab bar controller. It's possible for the user to bring up other screens that are loaded with: [self.navigationController pushViewController:nextSCreen animated:YES]; The user travels several levels deep this way. Eventually I want to be able to jump back to the original screen. ...

Memory leak tool tells me zero leaks but memory footprint keeps rising

I'm running through some memory profiling for my application in SDK 3.2 and I used the 'Leak' profiler to find all my memory leaks and I plugged all of them up. This is a scrollView navigationController application where there are tiles and you click a tile which goes to a new view of tiles and so on, I can go many levels deep and come ...

Accessing a global varibile in any class

Hey all i have been trying to figure out why i am getting this warning: 'TxtAppDelegate' may not respond to '-TCN' 'TxtAppDelegate' may not respond to '-TID' when i try to use this code: // .h file @interface RootViewController : UITableViewController <UIActionSheetDelegate> { NSString *theCompanyName; NSString *theID; } @prope...

File not being copied when deployed to iPod device

Hi I have an application with some images in it. Recently I added a new one in and it displays fine on the simulator. When I create a distribution build and do an ad-hoc install it works fine, but for reasons unknown the image doesn't appear. I have tried "touching" the directory it is in Re adding it Cleaning the solution aroun...

Couldn't parse contents of <appname>_Prefix.pch: Unexpected character at line 1

I have started a project from an XCode template I have created. When I try to run in debug mode it works fine; however, when I try to run it in release mode I get an error message couldn't parse contents of _Prefix.pch: Unexpected character / at line 1 I haven't touched this file. Any ideas on what has happened and how to fix it? ...

UIAlertView and detemining what is clicked

I have code that when a user hits the end of the game, it prompts them if the would like to play again: -(void)showAlert { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@" B U S T E D ! " message:@"Sorry, you busted!\n\nWant to try your luck 1 More Time! ?" ...

I need to inspect the view hierarchy on an iPhone program.

How do I determine what the view structure on my iPhone program while running on the simulator? ...

Interface builder/Objective C problem

Hi. I'm trying to create an application in interface builder, and I'm having a problem. What I want is to create a screen with an image, together with a sectionIndexTitlesForTableView bar. When the sectionIndexTitlesForTableView bar is touched, I want the image to disappear (and never reappear again), and to jump directly to the select...

UITextField: Text Entered Programmatically but not Visible in the Text Field

I have a weird behaviour that has only shown up in the last week. I don't use IB, all the controls are created in code. I have a text field with a keyboard active. The first time I load the text field and use the keyboard, everything works normally. The second time I use it, the typed text does not show in the text field. However, the t...

"Cannot find executable for CFBundle/CFPlugIn" error

Cannot find executable for CFBundle/CFPlugIn 0x432bfa0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (not loaded) Cannot find function pointer NewPlugIn for factory C5A4CE5B-0BB8-11D8-9D75-0003939615B6 in CFBundle/CFPlugIn 0x432bfa0 </Library/Audio/Plug-Ins/HAL/DVCPROHDAudio.plugin> (not loaded) That's the error I get when I try t...

EXC_BAD_ACCESS on ReloadData

I'm loading data dynamically from an API using a UISearchBar and trying to display it, using something like this: - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { [searchBar resignFirstResponder]; NSLog(@"Search Text: %@",[searchBar text]); [self startSearchingWithText:[searchBar text]]; } - (void) startSearch...

getting nsstrings into an excel spreadsheet?

Any idea how to go about formatting the data so I can export from my app data in excel format or even a simple table would be okay, how are people getting stuff out of the phone? This particular app is about keeping track of money, so i can pretty much turn everything into nsstrings but how do I: A. format the strings so the fields ar...

How to use LinkedIn API in iPhone SDK?

I want to use the LinkedIn API in my project, but I haven't found any good tutorials about using LinkedIn API. How to use LinkedIn API? "A beginners guide/introduction" of "basic concepts" would be helpful. OK, after googleing around I went to this link LinkedInAPI. I filled in the form but I am unable to understand what the "Integra...

How to link Cocoa static library to C command line target?

I have static library target, which uses Foundation classes(NSArray,etc) . I want to use this static library in Command line tool target. The command line tool contains only C files. From command line tool I want to call a method exported in static library. So I have modified header search path and linked the static library. When I comp...