I am trying to find the intersection of 2 number ranges, say for example...
range A is from 10 to 100, range B is from 60 to 70
Is there an easy way without writ
You can use this method for that purpose:
NSRange NSIntersectionRange ( NSRange range1, NSRange range2 );
You can find all the info here:
NSIntersectionRange Apple Doc