xcode

iPhone Application build copies <Prefix_filename>.pch.gch

I large (12 mb) Prefix.pch.gch file is being copied to my final iPhone application. It does not exist in the project and only shows up in the build log. It adds quite a bit to my otherwise small application size. Any suggestions for stopping xcode from copying it? Does anyone know what it is? I did a little research, and it looks like a ...

Objective C code in LATEX listings

Hi everybody, I'am searching for a way to use objective C in LATEX. I want to display the same syntax highlighting in LATEX as it is in XCode. I tried it this way: \lstset{language=[Objective]C,label=code:MyCodeLabel,caption=A small caption,name=code:MyCode, breakindent=40pt, breaklines} \begin{lstlisting} NSLog(@"Test it: %@",[[[[...

Accessing Code Signing Certificates on OSX in order to build an XCode provisioning utility [C# preferred]

Hey folks, I'm creating a utility in C# to setup provisions and build settings for an iPhone project. The XCode project file contains these lines: CODE_SIGN_ENTITLEMENTS = ***; CODE_SIGN_IDENTITY = ***; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "***"; ... PROVISIONING_PROFILE = ...

How to see multi-byte strings in Xcode

Hello, Is it possible to see strings that use 16 bits chars in Xcode debugger? I use a custom string class, not NSString. The strings are NULL terminated. The only way I can see the strings is if I see them as memory, but they are hard to read. Thank you! ...

Adding icon.png reference to XCode?

I just spent over an hour due to yet another XCode quirck. I added my icon.png by 'Adding an existing file' (w/ the checkbox checked for that copy option). The binary upload to AppStore kept throwing an error. Then, I finally tried to just drag-n-drop the icon.png file into XCode. This prompted me to do the same thing (and yes, i checke...

Adding an Image to View Controller transition

Hey Guys, I currently have several view controllers and transitions set up throughout my app using: //switches controller ViewController2 *controller2 = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil]; controller2.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:contr...

how to fit radius in mapview

i have a MKMapview with 1000 meter radius circle. how to fit that circle exact in the MKmapView rect? How to adjust the span level for fitting the circle inside the MKmapview? ...

UITabBarController and switching from one tab to another through code

Hi I have a UITabBarController that controls two tabs, Main and Settings. Now I would like, under certain conditions, to switch from the Main tab to the Settings tab (like if there is a setting the user have to do before he can use the App). I know I can do this from the AppDelegate, but my condition could occur when I'm running in th...

Change the working directory in Xcode

I managed to get my C++ project running in Xcode using cmake -G Xcode. Now I would like to debug it, because of the nice gdb fronted it provides. However I need to change the working directory where gdb is executed otherwise it wont work. (It needs to read some data from files relative to the path of the working directory) What I can do...

Xcode "step in" debugger problem

Hello, I have a problem when using step in a function - the debugger jumps in a header file that is not related with the implementation of that function. This is working as expected for other functions.. Did you have such problems before? What did you do to solve this? It's very weird.. I never had such problem in Xcode before. I tried ...

Help! Adding image to UIViewController Transition! :S

Hey Guys, I currently have several view controllers and transitions set up throughout my app using: ViewController2 *controller2 = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil]; controller2.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:controller2 animated:YES]...

action for selecting an index in an indexed uitableview

Hey, I have sectionIndexTitlesForTableView implemented in my controller class. when I selected an index, I want to have my custom action. Is there a way to do it? ...

Can I have configuration specific resources in XCode

I have an Xcode iPhone project with 3 configurations, debug, release and adhoc. What I need to do is include a resource file only for the debug builds, and not for the others. Can anyone tell me how to do this please? I know I can have different project settings and preprocessor directives per configuration, and different resource fil...

Pass a Variable Up the Navigation Stack? - iPhone

Hi, I am able to pass a variable forward from view controller to view controller by pushing its view controller onto the navigation stack. An example of how I do it would be this: MyViewController *controller = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; controller.myString = stringToPass; [self.navigatio...

how to pass arguments to url (.php file)

http://something.php?ownerID=13&amp;view=userAgreement i need to pass two variables to this .. how can i pass these i am declared ownerid to 13 in my config playlist and i am able to get it ,how to set "view = useragreement" string to view variable.... can any body show me sample code.. i am using like NSString* termsURL = [[[NSBundl...

code quick view disapeared in xcode.

hi, im using xcode for programming objective c. for anyone that uses it, you'll know that on the left are the files in your project, and when you click one once, the source code shows up on the right side of the xcode window. however I have done something im not sure and that view has disappeared and I have to double click each file and ...

iPhone Xcode UIButton Title Will Not Appear

So I am making an iPhone program and for some odd reason the title of my UIButtons will not show... am I missing something?? I get no errors or even warnings on compilation and my buttons and everything appear, just the title is not being shown.... FurballViewController.m ... -(void)loadView { UIButton *btn = [UIButton buttonWith...

Application update after change executable name

Hello. We have met the problem. We have application with executable file name 'foo' version 1.0 and it was approved in app store our new developer somewhy renamed in target settings changed product name to 'bar' and submitted it to apple store as update to foo. version of bar is 1.1 after bar was approved and replaced foo as new applicat...

"Best" Way to Implement a UISegmentedControl underneath a UINavigationBar

Hi all, I am working on an app that uses a navigation controller to control the views. In one part of my app, I want to have a UIView with a UISegmentedControl just underneath the navigation that will "filter" the UITableView. Essentially: ======================================== | < Back) Title Goes Here | <- navigation...

How to run single testcase in XCode?

I know it is best practice to run all unit testcases after any change to make sure not breaking anything. However, some times, e.g. debugging, I really want to run only one single test case. It seems XCode doesn't provide such feature in UI, while other testing framework such as JUnit has such features. Is there any workaround to have o...