Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-01-2009, 03:49 PM   #4 (permalink)
mnemonic_fx
Registered Member
 
mnemonic_fx's Avatar
 
Join Date: Jun 2008
Posts: 419
Default

This might works for you.

Code:
NSRange range = [theString rangeOfString:@">"];

NSString *coordinate = [theString substringWithRange:NSMakeRange(1, range.location-1)];

NSArray *coordinateValues = [coordinate componentsSeparatedByString:@","];

NSString *xValue = [coordinateValues objectAtIndex:0];
NSString *yValue = [coordinateValues objectAtIndex:1];
__________________
Visit Me

Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.
mnemonic_fx is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,825
Threads: 89,206
Posts: 380,635
Top Poster: BrianSlick (7,129)
Welcome to our newest member, srishtimehta
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.