xcode

uiview flip from top

how to flip a uiview from top/bottom using uiviewanimation ? Does anyone have any ideas how this can be accomplished? ...

uiview Transition problem

i have a UIview holding two other UIviews. that two subviews having 15 buttons and images. i have to translate the parent view. but the translation is not smooth in 3g phone. im using UIviewanimation and CGAffineTransformTranslate for translating the view. please help me for making it more smoother. ...

iPhone Application Crashes (probably from multiple views use)

Hello everyone! I am preparing an iphone application in which I am using many transition among view controllers. This means that there is one main menu view controller and after i press the necessary box, a modal view controller is being pushed. After this, I press an exit button and come again to the main menu and I can reenter. The p...

Is there a way to hide certain macro calls from the editor in Xcode?

I'm using the latest Xcode 3.2. I have a lot of macro calls in my code which are used for debugging. They generate very useful information about the current execution path and help a lot to understand what's going on. That said, those macros practically look like this: LogNote(@"unload foo controller because bar controller has replaced...

Is it possible to define a macro that looks almost like a comment?

I try to make a useful macro for logging. But I find that NSLog and all other sort of macros that carry textual information with them simply distract a lot from the code. Is there any way to "hack" Xcode in a way that it will interpret something like /*** do this because of that ***/ as a macro call, which results in calling NSLog, ...

How to let the debugger stop anywhere?

Example: I run my app in the simulator. Then I want to figure out what exactly is going on when I touch a button. Normally I would first have to find out where the entry-point of all this madness is in order to place a breakpoint. But now lets assume my app has 700 classes and it's incredibly complex, with more than 12.000 methods. Chanc...

How to pass all arguments of a method into NSLog?

For example, I print out something to the console using NSLog. Is there a way to pass all the current method's arguments to NSLog or any other function or method without looking at each of them explicitely? For example, I have already a macro that prints useful information to the console when I just put LOGME in my code. The macro will ...

XCode breakpoint [NSExceptionRaise] vs -[NSExceptionRaise]

XCode:Run>Show>Breakpoints I've added the obligatory [NSExceptionRaise] and objc_exception_throw yet when I close the Breakpoints window and then return XCode adds a third breakpoint: -[NSExceptionRaise]. Does this mean [NSExceptionRaise] is wrong and I should delete it? Or are they both helpful? If so in what way are they functionally...

Xcode organising files and folders (core data model objects - iPhone)

I am developing for the iPhone and the prevailing advice on auto-generating files from entities, when using Core Data, is to select the *.xcdatamodel file and the create the new file(s) etc. This creates the *.m and *.h files in the Resources directory. These are then moved to the Classes directory or a subdirectory of Classes. Howeve...

Xcode missing Command Line Utility section - can't start Foundation project template

I downloaded the iPhone SDK from the iPhone dev center a couple of days ago and installed it yesterday. I'm following the Stanford iPhone development tutorials available on iTunes U. On Assignment 1B, the first instruction is to open a new Foundation Project template. The screenshot shows several sections in Xcode which my version doesn'...

Use a Plist dictionary for App settings

I want to be able to use a plist for settings Im implementing in my app. I want a dictionary "Settings" to hold my arrays, such as "Debug", "Option 1", Option 2", etc. How would I access "Debug"array under the "Settings" dictionary? This is what my code looks like: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirect...

NSDateFormatter gives different values on device and simulator? What is work around?

Hi, I am using NSDateFormatter, the problem is with its consistency. If I use the kCFDateFormatterMediumStyle it gives the format as "Nov 26, 2009" in simulator but on device it gives "26-Nov-2009". Now I have the question, Is this NSFormatter trustable means in near future or updates from apple can it change the style again? ...

iPhone: how to remove badge after Push Notification?

Hi guys, What is the code to remove the badge on my app's icon? When I receive push, I need to remove it when a button is clicked! ...

iPhone Development xcode : Putting user input (names) into text array

I am trying to load names in an array using UIAlert and then print them one by one. I can not figure this out can anyone help me with this. I would really your help apprecaite ...

Xcode documentation links behave crazy

The links in Xcode documentation, that mean the methods in the "Tasks" for example, when i only put the mouse on the links, then the page go up. What happen to Xcode? ...

XCode - Multiple targets, Multiple *internationalized* names?

I've got an internationalized iPhone project. In the various ${lang}.lproj/InfoPlist.strings files I've got a single key, CFBundleName = "My App Name". That's working fine for a single target, but I can't make it work for multiple targets. I'd like to have several translated InfoPlistMyApp.strings files for the main target, plus severa...

Which books about Xcode can you recommend?

I'm looking for a book about Xcode. I wonder which one might be good for me. I'm looking for a book which goes as deep into Xcode IDE as possible. I want to read everything about it, why they did things the way they did. Like this Groups & Files. It should be as much about Xcode as possible. Almost all Cocoa books talk a little bit about...

compile error on Xcode

How can i fix it Ld build/Debug-iphonesimulator/iRadio.app/iRadio normal i386 cd /Users/ragopor/Desktop/iRadio setenv MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin...

Application developed in Snow Leopard not appearing executable in Leopard

Hi all, I developed a simple application in Snow Leopard. The build configurations at which it was compiled in Snow Leopard are: (10.5 | Release | i386). When I tried to compile it using above stated configurations it gave me this error in the application delegate file, which was created automatically when I created the project: canno...

Convert NSString to NSDate

Hi, I'm trying to convert a NSString to an NSDate. If the iphone region is set to english (USA) it works perfect, but when I set it to Swedish it doesn't. My code: [...] // Get the date from the post NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"eee, dd MMM yyyy HH:mm:ss ZZ...