- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Add code to open bundled Web site
NSString *path = [[NSBundle mainBundle]
pathForResource:@"index"
ofType:@"html"
inDirectory:@"www" ];
NSURL *url = [NSURL fileURL...
Im trying out some iPhone scroll view tests, but when i load the view, the app just blows up.
I get no debugging information in Xcode, no EXC_BAD_ACCESS, no errors, just
[Session started at 2010-07-16 10:35:21 +0100.]
and
Debugging terminated in the bottom of the debugger window.
I have set Generate Debug Symbols in the target prefer...
Is there a way to set a default language to be used when the device UI language is not supported by an app?
Example:
My app is localized into English and German:
en.lproj:
"POWER_TO_THE_PEOPLE_BTN" = "Power"
"POWER_PLUG_BTN" = "Power"
de.lproj:
"POWER_TO_THE_PEOPLE_BTN" = "Macht"
"POWER_PLUG_BTN" = "Spannung"
Now, if I run the app o...
Hi,
I'm developing an iPhone application, and after making small changes to my code, when I tried to build I suddenly got the following build error when XCode tries to create precompiled header:
i686-apple-darwin10-gcc-4.2.1: n: No such file or directory
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 fa...
Is it possible to use xcode to develop adobe air application??
how to install flex 4 sdk into xcode?
Thanks!
...
Hello people!
First of all, I've never developed with Xcode. I have a project that has been developed by me under a certain environment (Linux and emacs) and now some colleagues that use a different environment will work with me. This is a C++ project that uses CMake.
Long story short:
I use Linux/emacs. Other developers use mac/Xc...
I have an image under Resources group named "DownArrow.png"
Open your viewController.xib
Drag & drop an imageview
select imageview & press command+1 ( for attribute inspector )
now set image name DownArrow.png
save your viewController.xib
close it
now reopen it.
you will find imageview with different image ( which is really a downArrow...
Hey, trying to put a simple png sequence animation into my app. I have the first frame in place in IB, and the graphanimation outlet connected to it.
There are 54 pngs in the sequence with names "Comp 1_0000.png" to "Comp 1_00053.png"
Here's my code.
-(void)viewDidLoad{
for (int i=0; i<53; i++) {
graphanimation.animationImag...
Is there no unit testing framework in the iphone sdk?
...
Hi,
I have the following test in my unit test suite:
STAssertEquals(0, [[newUnit itemsWithinBasketFrom:[NSDate dateYesterday] through:[NSDate dateTomorrow]] count],
@"A unit with no items should return 0 when asked for items in place within a date range. (count=%i)",
[[newUnit itemsWithinBasketFrom:[NSDate...
Hello,
Is there any possibility to see preprocessed files before they are compiled in Xcode? In Visual Studio has the option "Generate Preprocessed File" (options->C/C++->preprocessor).
Thanks!
...
What are the differences between compiling a Mac app in Xcode with the Active Architecture set to i386 vs x86_64 (chosen in the drop down at the top left of the main window)? In the Build settings for the project, the Architecture options are Standard (32/64-bit Universal), 32-bit Universal, and 64-bit Intel. Practically, what do these m...
I have a simple project to present a modal view controller and transfer back a string based on which button in the modal VC that gets pressed. I based it all on watching the Stanford class on iTunes U. It looks like I have everything correct, but I get a couple of compiler warnings.
First I get one called passing argument 1 of 'setDel...
I have created an app, and then later changed the core data model. I changed the model and this all works fine during development. However to my surprise, when users download the updated version (with the new core data model), the app keeps the old model from the previous version. This causes the app to crash.
Is there some way to simu...
I am looking to implement a "world High Scores" for a game I wrote. I have several games already installed on my phone and was wondering how developers are creating those fancy looking "High Score" table views?
I have seen some very cool ones...some showing the scores within a view that pops up from the bottom, showing half way and t...
In my code, i have this line;
[self.navigationItem.backBarButtonItem setTitle:@"back"];
but this doesn't change the title of the back button in uinavigationcontroller when the new controller is pushed.
So how to change the title of the back button?
...
Hello,
making a thumbnail from video using the picker is straight forward. However, when I press PLAY in the picker and then chose the video, my thumbnail is alway black. I was hoping it makes a screenshot - however this method only takes the first image of the video - and ONLY IF IT HASN'T BEEN PLAYED!
How can I make a thumbnail at an...
I have a frame by frame animation but it is causing my iPad to crash. There are actually a few animations, located in different view controllers, and they work but after a while of switching between them it will crash the app. I think it could be a memory issue that I need to release name, image and array after the animation, but how do ...
I am porting a plug-in from 32-bit to 64-bit which is actually in C++. Since Carbon is no longer supported on 64-bit, I have to port some code to Cocoa. The only Cocoa help I need is how to create a simple modal window (not a sheet) that has two buttons, OK and Cancel, and gives me a string input from the user. I created a Cocoa nib, but...
Hi all,
I am unit testing my app in xcode, but for some reason I can't see any printouts in the debugger console from the NSLog() statements in my implementation files.
Why would this be? And how do I get my darned printouts??
Thanks
...