xcode

How do you make the "more" button of a UITabBarController return to the root view

Hi! I have a UITabBarController which has been created programatically. There are 6 tabs within the tab bar which has forced a more button to appear, which is great and works beautifully! Whilst testing the app, one of the testers raised a point. When they select the more button, then select one of the options in the more menu, the res...

XCode don't simbolicates my application log lines , only the frameworks related ones

Hello.. I'll been reading that Xcode simbolicates the crash logs.. it only simbolicates the lines that are related to a framework class. example: 6 myapp 0x0003e796 0x1000 + 251798 7 myApp 0x000066bc 0x1000 + 22204 8 UIKit 0x0006e9de -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 6...

splash screen won't show

EDIT 1: changed the code to: delegate.h: #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; ViewController *viewController; UIImageView *splashView; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet V...

Time profiler in Instruments

I am having trouble launching Time Profiler in Xcode, both for Mac Applications and iPhone apps. The steps I have tried are opening Time Profiler, Clicking the choose target drop down box, selecting my iPhone or Mac book. Choose target -> myApp. If I choose a Mac app then I hit the record button a big yellow warning pops up accross the ...

Debugging a library with Xcode

Hi there, I have a more general question on working with libraries on with Xcode when building iPhone apps. I've created a framework from a project I've been working on to use some parts of it in other apps. That works pretty good, so far. But I have no idea how to debug into the files included in the included framework. I hope to get ...

UIScrollView moves on its own

I have a full screen UIScrollView that has several possible layout configurations. It is basically a "contact" card eith some buttons, imageViews, Labels , and text fields. When it loads, buttons will be moved or removed based on the content available. Oddly, the Scorll View does not always start in the same position. Sometimes it loads...

how to properly debug in xCode and Objective-C

Hi, I was wondering if there is an effective way to debug problems in xcode while coding in Objective-C. I create webpages constantly and code in jquery and javascript where you can set various alert boxes in different places in your code to determine if your script is properly executing sections. Can you do something like that in xcod...

What is wrong with this string format (different behavior on simulator and device)?

I have this block of code executed when pressing a number: NSString *currentValue = [@"" stringByAppendingFormat:@"%.02f", [[[[[textField text] stringByReplacingOccurrencesOfString:@"." withString:@""] stringByReplacingOccurrencesOfString:@"," withString:@""] stringByReplacingOccurrencesOfString:@" " withString:@""] doubleValue]/100...

Linking like in XCode's Interface Builder

Hello! I want to create a functionality in a program to link two views (inside another view) using links like when CTRL+Dragging in Interface Builder. In the implementation I have currently, there are 2 (or more) subclassed NSControllers (called Nodes) and inside those nodes there are 1 (or more) subclassed NSControllers (called Outlets...

How do I download and install just the iOS SDK?

Possible Duplicate: Way to update iPhone SDK without having to re-download Xcode? I just installed Xcode from my Snow Leopard disc which does not include the iOS SDK. The only download I see on Apple's website is that of both Xcode and the iOS SDK (which does not start downloading). I only want to download the iOS SDK as Softw...

Getting more information when an Objective-C exception is raised due to assertion failure

I'm getting an assertion failure from a UIKit function in my iPhone app. The error message looks a bit like this: 2010-10-27 02:31:49.058 MyProgram[114:207] *** Assertion failure in <some random UIKit function>, <location in UIKit source code> The exact error isn't really important, but my problem is just that the message is a bit shor...

Command line tool in Objective-C using Foundation?

Hey there, is there a simple way to create a command-line tool in Objective C? I'd rather not use XCode, because XCode has targets and executables, and just complicated stuff. I'd like to go classic way, just create a Makefile, compile something get an executable, play with it. -- If this is not possible, is there any way to run th...

what's with all of these errors?

#import <UIKit/UIKit.h> @interface ProfileViewController : UIViewController { UIImageView *profPic; UILabel *name; UILabel *hosted; UILabel *points; UILabel *attended: UITableView *tableView; } @property (nonatomic, retain) IBOutlet UIImageView profPic; @property (nonatomic, retain) IBOutlet UILabel name; @prop...

how to change UIViewController to UISpliViewController

Hi All, let say the screen flow from a single view to splitview, how to change from UIViewController to UISplitViewController? i tried use a ViewController as switch controller, but after switch to SplitView, the SplitViewController unable detect Interface Orientation (landscape or portrait). thanks. and sorry for broken english. ...

App not working on iPod but does work on iPhone

Hi, I didn't test my app on iPods before submitting to the app store. Now I'm getting comments that the app doesn't work on iPods (doesn't even load, just crashes immediately). The app uses the user location, but from what I understood the iPod also is able to find locations although he doesn't have a GPS. Does anyone have an idea what m...

Error from Debugger: The program being debugged is not being run.

Please dont mark this as duplicate I am getting this error while debugging my app on device I tried everything from these posts (see below) but no luck - http://stackoverflow.com/questions/2037328/iphone-sdk-error-from-debugger-the-program-being-debugged-is-not-being-run http://stackoverflow.com/questions/1727169/xcode-fails-to-run-a...

iPhone, how do I get the device short date format ?

I've not got the device price format setting. NSNumber *temp = [NSNumber numberWithDouble:dblPrice]; NSDecimalNumber *someAmount = [NSDecimalNumber decimalNumberWithDecimal:[temp decimalValue]]; NSNumberFormatter *currencyFormatter = [[[NSNumberFormatter alloc] init] autorelease]; [currencyFormatter setNumberStyle:NSNumberFormatterCurr...

Xcode loads always debugger

When I start Xcode and let it make a new project, no matter witch. And click, build and run. It gifs this error The Debugger has exited with status 0. [Session started at 2010-10-27 11:14:54 +0200.] GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free s...

Got stuck with an error. Application exits with following error message in console

Data Formatters temporarily unavailable, will re-try after a 'continue'. (Unknown error loading shared library "/Developer/usr/lib/libXcodeDebuggerSupport.dylib") This error is seen only when running application in iPhone/iPad device and not on simulator. Any help?Thanks in advance.. ...

GDB question: Pretty-Printing a 2D Array?

I have a 2d array matrix[10][10] that I'd like to inspect at debug time. I understand that I can do this in GDB using p *matrix@10 But it outputs this in one line, making it difficult to read. Is there a way to have this output formatted in any way, lets say as a matrix? ...