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 07-07-2009, 04:18 PM   #3 (permalink)
PhysX
Registered Member
 
Join Date: Nov 2008
Posts: 57
Default

Right thanks, but something like this keeps going out of bounds for some reason. It makes no sense to me as to why...

Code:
NSString *hold=[page substringWithRange:NSMakeRange(page.length-200,page.length-150)]
Now I know it seems like it can go out of bounds from becoming negative, but it can't because I did a length check on 'page' and it came out of length 99,419. So it should just be substringing from values INSIDE that string, but it goes OOB...any idea why?

And this isn't what am actually using this for. For some reason the index to index+30 (which was around index of 66,000) was going OOB and I couldn't figure out why, so then I did this test just to see, and that's what I found. Numbers too large?

Thanks
PhysX is offline   Reply With Quote
 

» Advertisements
» Online Users: 628
23 members and 605 guests
ADY, amrelrafie, AragornSG, cbrauchli, Dattee, denied, Domele, Duncan C, foany, kapps11, Keys, LiquidFire, mapiko, Meoz, mrburns05, Objective Zero, poisenden, Robiwan, sle39lvr, Speed, spiderguy84, themathminister, wiggi
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,745
Threads: 89,201
Posts: 380,567
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Ashleyk27
Powered by vBadvanced CMPS v3.1.0

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