I have a project where I use two build settings predominantly. Unfortunately today something went wrong. One compiles and the other doesn't. How can I compare the two build settings in XCode to see what the differences are?
(For those interested, the error I get in one build is
jump to case label crosses initialization of 'const char*...
I have just changed a compiler option from 4.0 to 4.2.
Now I get an error:
jump to case label crosses initialization of 'const char* selectorName'
It works fine in 4.0
Any ideas?
...
I really need to make a UIWebView open up a specific PDF document that is in my project directory. I can't seem to find any tutorials on this. I found one, but the author was not specific about some of the code.
I have to assume it's got to be quite a simple bit of code.
Can someone help me code UIWebView to load a PDF?
Thanks.
...
I would like to be able to decide where a sub view is placed, when that view is controlled by its own view controller. This happens frequently on the iPad when you have a semi-complicated view that doesn't fill the entire screen.
So, imagine that I want the sub view controller's nib to decide its own width, components, connections, etc...
How to tell if you touched a CCLabel?
The following code obviously does not work well enough because it only tests for point equality. Naturally touch point will not necessarily be equal to the position property of the CCLabel (CCNode). How to I tell if a Touch point has fallen within the "rectangle?" of the CCLabel?
- (void)ccTouches...
I am detecting touches for CCBitmapFontAtlas (just text labels) as shown in the code below. But it seems that touches are only detected slightly ABOVE the CCBitmapFontAtlases? Did something get screwed when converting between coordinate systems?
(*Note objects label1, label2, etc are CCBitmapFontAtlas)
- (void)ccTouchesEnded:(NSSet *)t...
I'm starting a new app, and I'd like to know how to require a password to open it. I've been researching on Google and the Apple Dev Forums and haven't found anything.
I was considering a UIActionSheet in the application didFinishLaunchingWithOptions method of the app delegate implementation file, but am unsure how to go about doing so....
I added a child like this inside of a CCLayer:
[self addChild:object1];
Later on I want to remove that object from the children. Ummm so how do I do that? Thanks.
...
If I created some libraries that I want to give others, but I don't want to share the source code to them (I don't want to give the .h, .m). How can I pack my code to others in XCode? thz.
...
Hi,
I have the same problem as the guy here:
http://stackoverflow.com/questions/2682844/uiimagepickercontroller-reloads-view-after-its-dismissed
I have a UIView with a UIDatePicker within a Popover. When the Popover is dismissed and presented again, it sometimes resets the Picker in the view because hidden views are unloaded when a mem...
I have linked a library with my program. It works fine. The only problem is that there visibility errors/warnings (thousands of them).
They are all of the form:
newlib::method() has different visibility (default) in newlib.a and (hidden) in AppDelegate.o
It is always with AppDelegate.o. I have tried to set the visibility for both the...
Hi, I have an application that sends you to one website that shows a login form.
I've read up on cookies from the apple reference (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookie_Class/Reference/Reference.html#//apple_ref/occ/instm/NSHTTPCookie/initWithProperties:)
I'm honestly ju...
Is there a way to detect if an external (bluetooth or usb) keyboard is connected to the iPad?
Thanks!
...
I have a UITabBarControllerDelegate method that determines the title of the UITabBarItem and does something accordingly. This works well for items in my UITabBar but when I click on the More button the rest of my UITabBarItems are in a UITableView. How can I determine the title in the More section?
- (void)tabBarController:(UITabBarCont...
I have a UITabBarControllerDelegate that pushes a new view controller when a certain tab is pressed:
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
{
MyView* myView = [[[MyView alloc] initWithNibName:@"MyView" bundle:nil]autorelease];
if([self.tabBar...
I have just started to develop for the iPhone and am in the process of learning Objective-C. I have seen some code that implements a method in the @implementation side of a class like this:
-(void)myMethod; {
// method body
}
What makes this interesting is that there is no mention of myMethod in the @interface for the class. I trie...
I am having an In-App-Purchase for an iPhone app.
I want to display the price in the users local currency in a UILabel. For this I need the price & currency in a variable.
How can I get the price including the currency using SKPayment? (If SKPayment is correct for this use.)
I'm instantiating the product using:
SKPayment *payment = [...
This is what happens when I try to compile my iPhone app with Xcode v3.1.4
What in the world does it all mean? (And how do I fix it?)
Processing /Users/carol/Documents/MyApp/build/Release-iphonesimulator/MyApp.app/Info.plist TabBarDemo2-Info.plist
cd /Users/carol/Documents/MyApp
setenv PATH
"/Developer/Platforms/iPhoneSimulator.pl...
How can I select device to execute debug build on Xcode?
...
I have create a class from a string, check it is valid and then check if it responds to a particular method. If it does then I call the method. It all works fine, except I get an annoying compiler warning: "warning: no '-setCurrentID:' method found". Am I doing something wrong here? Is there anyway to tell the compiler all is ok and ...