xcode

Convert Xcode view-based app to navigation-based app?

Newbie question: is there an easy way to convert a view-based app to a navigation-based app? I have an existing app sample that was created as a view-based app, and need to be able to create additional viewcontrollers that can be nested. The app is currently using presentModalViewController calls and nibs to display windows. Trying to ch...

How can I load a view based on how long I hold a UIButton?

Hello all, I've searched the net and documentation, but haven't found anything quite like what I'm trying to do. I'm working on an app where I want to load one view if a UIButton is held for x seconds, another if it's held for x+y seconds, etc. I found this tutorial. The problem I'm running into is, how do I switch the length of the but...

Can I specify other source directories in Xcode preferences such that gdb will use them for find sources?

I know about specifying source locations using gdb. But I am wondering if there's someplace in my Xcode project or other settings where I can specify source directories such that gdb would use whatever I specify to look for sources. If I could put them in Xcode settings I think it would help me save them in a central place. ...

Best way to store date/time into core data

Hi, For each course I am storing the day of the week the class the user has...and the start and end time and room no. What would be the best approach in terms of data type, Like for storing time?? so that when I pull it out I can display it e.g 1:00 PM. Thanks! ...

How to create new project in XCode using AppleScript??

Hi all, I want to do a simple task with XCode and AppleScript: I want to create a new project Save created project with desired name in desired folder. Can someone tell me how can I achieve it using AppleScript?? Thanks, Miraaj ...

xcode provision error

i installed and setup all the certificates, provisions , etc. and selected the did what was needed in the project edit page. i have the device in the usb and once i build i get this error. The iPhone “myname” doesn’t have the provisioning profile with which the application was signed. i have tried everything, read tutorials and what ...

what is difference between this two views ? (autorotation)

http://www.freezpic.com/pics/d63adbfb5faec3ded732dcfee5cc71ef.jpg in the image one i can enable red arrows inside the inner square ... http://www.freezpic.com/pics/736e30ef1accf1d174122f2e1b017b8d.jpg but in the second image i can't enable red arrows inside the inner square. why? ...

Clang Static Analyzer for xcode for dummies

Hi, Could somebody please help me get Clang up and running? (I don't have 3.2) I've followed numerous tutorials (basically every link off of this page http://stackoverflow.com/questions/961844/using-clang-static-analyzer-from-within-xcode) but I just cant get it to work! The only thing I've managed to do successfully so far is downloa...

XCode project version bump, is there automated way?

Hello, I would like to know if there are any automated ways to bump up the version number of an xcode project? I was using Jeweller with Ruby which has really nice command line option to bump up the version number on a project. The option were major, minor, or patch. X.X.X Is there any similar (semi-)automated way to bump a version nu...

showing a subview in another view at given point on the screen with animation

Hi everyone, I would like to make a subview appear at a requested point on screen. ex: i tap at (200,200) , my subview appears with animation under the point tapped. i know how to get the point , but I don't know how to make this subview appear right there at that point. Thanks! ...

Pesky compiler error on iPhone app

Trying to get MGTwitterEngine app to build. Getting one pesky error. The following ERROR. ld warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib/libxml2.dylib, missing required architecture i386 in file ld warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/lib/lib...

Changing the size of UISearchBar

Hi. Not being able to find the answer, and also not being able to do what I want with CGSize searchBarSize = self.searchDisplayController.searchBar.frame.size; searchBarSize.width = ; I ask: is there a way to change the width of a UISearchBar? Tanks a lot. ...

Core data, sorting one-to-many child objects

So if I have a store of parents children and the parent has a one to many relationship to children (parent.children) and they all have first names. Now, on the initial fetch for parents I can specify a sort descriptor to get them back in order of first name but how can I request the children in order? If I do a [parent.children allObje...

Three20 - SIGABRT on setting TTTableLongTextItem to TTStyledText

My code is as follows TTTableLongTextItem *descItem = [[TTTableLongTextItem alloc] autorelease]; TTStyledText *styledDesc = [[TTStyledText alloc] autorelease]; styledDesc = [TTStyledText textWithURLs:@"howdy http://www.google.com"]; //this line causes the SIGABRT: descItem.text = styledDesc; //I also get a warning on this line that say...

How does one properly redefine self while avoiding the "Multiple methods named ..." warning?

In Apple's The Objective-C Programming Language: Defining a Class the section named "Redefining self" recommends that that class methods allocate and return instances use 'self' only to allocate an instance and then refer only to that instance. Thus, I have a number of subclasses, that have class methods along the lines of: + (id)scroll...

The iPhone “phone” doesn’t have the provisioning profile with which the application was signed.

I have tried everything to fix this provision problem and nothing is working. I've reformated my Mac, reinstalled the iPhone, I've also dragged the provisions (developer and distribution) onto the Organizer, iTunes, and Xcode. In iTunes people say to drag the provisions to the iPhone icon but that doesn't work; it's only able to go unde...

Combining AudioServicesPlayAlertSound with UIInterfaceOrientation rotating buttons

Noob here: Been working on a project which is essentially one of those so-called soundboard apps, tap a button for a sound. While successfully managed to draw the buttons to rotate correctly in all orientations, I've been unable to combine with AudioServicesPlayAlertSound for the sound effects. Been working with InterfaceBuilder and ever...

I know my title view is a UISegmentedControl, Xcode still warns me...

I have a UINavigationalController of which I've set the titleView to a UISegmentedControl. Later on, if I do something like. [self.navigationItem.titleView setEnabled:NO forSegmentAtIndex:0]; I get a warning saying that UIView may not respond to this message. Of course it does and works fine but how do I properly get rid of the warni...

Is there a way to set custom collapsable code regions in Xcode

Is there a way to create custom collapsable code regions in Xcode similar to how Visual Studio can fold around #region/#endregion blocks? It would be nice to throw all autogenerated content into a region that I can fold away until I need to look at it. #pragma mark doesn't seem to do the trick. ...

Xcode linker error on iPhone app (Only on simulator)

Im getting this linker error that won't let me compile. It only happens on the simulator. KEY POINTS: - Happens only in simulator - Similar to THIS question, but found no FRAMEWORK_SEARCH_PATHS in my .pbxproj file - Though my OS is 10.6.2, I had to build target 1.5 to avoid other linker errors - libxml2.dylib IS required and is in my ...