Same question as: http://stackoverflow.com/questions/696218/do-line-file-equivalents-exist-in-c
But for Objective-C in iPad/iPhone SDK Xcode? This would really help my NSLog statement be a lot more readable over time.
...
In a silly mistake, I ran the "Upgrade current Target for iPad" assistant in Xcode. I'd like to target the iPad some time with my app, but right now, I don't have the time and just want to ship it. Is there an easy way to remove the iPad specific changes from my app?
Specifically, what I'm after is, I want to be able to run the app in t...
hey guys:
it's simple i had this linux pc which i connect remote and i have this application that i run there and i want to debug it, but i just don't know how.
It's the simpler c++ app on the world, load some libraries, do some calculus, print some output and return,
It's just that, i just haven't any clue.
So any help would be appre...
I have a button and would like to know its enabled state while stepping through code. This doesn't work in the debugger:
po self.myButton.enabled
It prints:
There is no member named enabled.
Is there another way to print out its state?
...
I got another new account for the AppStore, I setup the new account certificates on my MAC. Now when I try to publish XCode gives me the error
CodeSign error: Certificate identity 'iPhone Distribution: 'Name' appears more than once in the keychain. The codesign tool requires there only be one.
How can I change my certificate identity f...
I was using the bundle ID with wildcard (com.mycompany.*) and all was working just perfect, but as it cant be used for InApp Purchases I had to make a new ID (com.mycompany.product) and create a new provisioning profile.By doing so I am not able to install the app on device through xCode, there are no errors while building, nor any error...
Hello ! Every one.
I have some query. First of all let's have an iPhone application flow which a normal application has. ( Content based application )
Application launches & checks for the network availability
If network is available - iPhone downloads the data using web services or APIs
We can store these response ( web service res...
ok, possibly insanely n00b question or something i have overlooked in Xcode prefs: On pressing return, in stead of Xcode's syntax-aware indentation doing smart indent from whatever brackets i've used on the previous line, how can I make it so Xcode indents just from the beginning of the previous line?
From the picture below, first block...
I've been tasked to work on a project that has some confusing attributes.
The project is of the nature that it won't compile for the iPhone Simulator And the iPhone Device with the same compile settings. I think it has to do with needing to be specifically compiled for x86 or arm6/7 depending on the target platform.
So the project's bu...
Hi guys,
I m using Xcode version 3.1.4 for developing my i-phone application.Now I want to port & debug my application on my i-phone device.
So when the i-phone is in debugging mode, the i-phone uses its USB lines to communicate with the debugger?Is the RX,TX lines of the i-phone free during my debugging activity?
...
Hi,
-[UIViewController _loadViewFromNibNamed:bundle:] was unable to load a nib named "TwitterDrilldownView"
I get the above error when I push a new ViewController onto the navigation stack. This is the push code,
[self.navigationController pushViewController:[[[TwitterDrilldownViewController alloc] initWithTwitterAnnotation:temp] aut...
I am trying to make Twitter work in my app and everything works fine except the code does not seem to recognize an error from Twitter. If the username/password are not valid, I get an error message through this function:
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
NSString* strData = [[[NSString al...
I'm getting a EXEC_BAD_ACCESS when concatenting a large string.
I've read from a feed and to create my webview I build up my string like:
NSString *pageData = @"<h1>header</h1>";
pageData = [pageData stringByAppendingFormat@"<p>"];
pageData = [pageData stringByAppendingFormat@"self.bodyText"];
pageData = [pageData stringByAppendingFor...
I'm not sure what changed on my ad hocs but I get this error when trying to install:
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. (-19011)
Device debug builds fine. The cert that is associated with my ad hoc provisioning profile doesn't expire until 2011...
Hi,
I'm building an application based on the Utility template from Xcode, to which I have added some more views. My application structure would be as follows:
MainView (the app menu)
Flip-side view (a calculator)
UINavigationController
Settings view
viewDiDLoad: UITabBarController
- Tab1 view (options)
- Tab2 vie...
I've been trudging through some code for two days trying to figure out why I couldn't fetch a global NSMutableArray variable I declared in the .h and implemented in .m and set in a the viewDidLoad function.
It finally dawned on me: there's no such thing as a global variable in Objective-C, at least not in the PHP sense I've come to kno...
Which is the quickest way to view the value of a NSCFString variable in debugger window?
As for NSString, the string value is automatically displayed in the window or you move your mouse over it. But for a NSCFString, I tried same but cannot find the internal string.
...
So I came from a Flash background where I can animate in timeline. I've completed the Beginning iPhone Development book and just realized that I still don't know how to get an animation in. I'm guessing I need to import png sequences?
Can anyone point me to an appropriate place to learn more about this topic? I want to make a game and ...
Hi..
Can we define limit of inout in text field i wan that after certain number of character the keyboard should get hide. i should code on which event of textfields or keyboard.
...
This is pretty strange.
I have a class in Classes folder of my project (a .h file and a .m file).
When I try to import it like so
#import <myClass.h>
I get an error saying "no such file or directory".
It is definitely there. What could be going on?
...