xcode

TTStyledTextLabel's url's font

Hey guys, in the TTStyledTextLabel, the url's font is a bit bigger(from what i noticed) and is blue-ish. I am just wondering how to change the url's font to a smaller size? ...

randomizing the string pulled from a plist file

I'm looking to randomize the output from a plist file. I've read about arc4random(), but I'm not sure how to incorporate it into the code. thanks for any help. here's the code that's currently pulling 'objectAtIndex:0' -(IBAction) buttonPress { NSString *path = [[NSBundle mainBundle] pathForResource:@"messages" ofType:@"plist"]...

Clicking URL Link on TTStyledTextLabel doesn't push a new page

hey. When I am clicking URL link on TTStyleTextLabel, it doesn't push a new page. But when I looked at the TTCatalog, they don't have any method in the styledtexttestcontroller which seem to open up the webpage. So how does TTCatalog do that? How can I do that? ...

Xcode uses old version of templates?

My install of Xcode 3.2.3 created a project with different template files than those of my classmates. We all created a navigation-based app that used core data. I suspect that my templates are somehow left over from previous installs, whereas my classmates all have current templates. Anyone else experienced this? Any suggestions for m...

iPhone/iOS: How to list all files in a resource group?

I've got a bunch of resources -- images, to be specific -- which are all stuck in a resource group via XCode. I know how to load a specific image file from within that resource group by specifying the filename and using inDirectory to specify the "path" to the group it's in. But is it possible to obtain (programatically) a list of all ...

Building libxslt for iPhone

I just had an app rejected for linking to libxslt using this technique. I'd really like to use XSLT in my app, so it looks like my only shot is to compile it myself. I don't want to use a UIWebView because I want to store the resulting HTML, not just display it. Has anyone done this -- compiled libxslt for the iPhone? After some Go...

How do i compare two traces in instruments for iphone

After recording a memory leak trace in instruments for iphone simulator, how do I compare it with another memory leak trace ? How do I make instruments to show only the new memory leaks which are different from the other compared memory trace ? Thanks, -Viral ...

how to combine two project on iPhone?

Hi, everyone, I want to ask about the objective C on iPhone. I am writing a application, it contains 2 pages. The first page requires the user enter some information. The second page displays the tab page (3 tab). And I create the first page and the second page in different project. I use the 'Window-based Application' to create the f...

XCode ios4 UIWebView Code Problem

-(void)viewDidLoad { [webView loadRequest:(NSURLRequest) requestWithURL:[NSURL URLWithString:@"http://itunes.apple.com/ca/album/zirka-live/id352921457"]];]; } ...

How to push UIViewController

I have UIViewController in Viewbased application. I want to push another UIViewcontroller from it. -(IBAction) Myfunction { MedicineSearchSystem *medicineSearchSystem = [[MedicineSearchSystem alloc] initWithNibName:@"MedicineSearchSystem" bundle:nil]; [self.parentViewController:medicineSearchSystem animated:YES]; // Crash her...

Iphone App behaves differentlt when downloaded from store vs testing on phone

Hi All, Having an issue with an app I have done that has been approved and is on the app store. The problem is I have a section that adds some float values together then uses, NSnumberformatter to convert them to currency. On the iphone simulator and if uploaded to the phone (in debug or release) it works fine and adds up the correct ...

iPad UIWebView and different versions of XCode

I have an iPad app with a UIWebView which loads some local .rtfd.zip files. The problem is that if I compile the app with XCode 3.2.2, everything works fine, but if I compile it with newer versions of XCode, I just get a blank UIWebView. Here's how I load the files into the UIWebVIew: -(void)loadFile:(NSString*)file { NSString* resource...

Generate DTMF tones to be played by the iPhone.

Hi! I want to develop an application for the iPhone that generates custom DTMF tones. I assume the pure tone will be played from a memory buffer and not from an uploaded file, and I think I should use AVAudioPlayer class and the method "initWithData:error:", but how do I implement it? Whatever I do, I can't make it work! I saw this cod...

Can I use SVN on a Linux server with Xcode?

Can I use SVN on a Linux server with Xcode? ...

How to set the popup keyboard to only show certain keys?

How do you set the popup keyboard to only show certain keys when you type into a textfield? I know there are default keyboards but none seems suitable. Is there an alternative input option? Thanks. ...

Memory / Obj-C proper object release. Which of these requires release?

Alright, this is an elementary question but I'm asking because I honestly don't understand how to properly manage this. If I uncomment the last two lines, this code crashes, even though I don't think it should. The following code is from a custom subclassed UILabel where I added the following method, setTextFromFloat. -(void)setTextFr...

No provisioned iPhone OS device is connected.

I just updated my Xcode to the latest version and am trying to run an app on my device but I get the following error: No provisioned iPhone OS device is connected. ...

MKOverlayView tranform

i have a MKOverlayView with custom drawings. i have to rotate those view to different degrees. i used transform property for rotating the view. its working in the ios 4.0 but its not working in the ios 4.1. What is the reason? how can i rotate the Overlay view? here is the code... - (MKOverlayView *)mapView:(MKMapView *)mapView viewFo...

UITabBar funcionality without UITabBarController

Hi I have this problem, I've got a navigation-based application, and on the one of the detail view i need to have UITabBar, which will display some UITableViews. Since apple documentation says "you should never add a tab bar controller to a navigation controller" it make quite a problem, i've found this sample: link text, it's working,...

Ipad xcode plist problem

Hey guys I'm having a problem with my plist file. Maybe you will be able to figure out the solution. I made a project for ipad, everything is working well on the ipad simulator, absolutely no problem. Now I decided to test it on an ipad device. Therefore I modified the "Bundle Identifier" in the plist which was by default "com.yourcomp...