play with the string like this:
NSString * urlName = @"assets-library://asset/asset.mov?id=A3210417-4BAC-1C78-BD93-
4BDD286247D9&ext=mov";
NSArray *arr = [urlName componentsSeparatedByString:@"id"];
NSString *str = [arr lastObject];
NSArray *arr1 = [str componentsSeparatedByString:@"&"];
NSLog(@"array is %@",arr1);
NSString *str2 = [[arr1 objectAtIndex:0] substringFromIndex:1];
NSLog(@"str2 is %@",str2);
output will be A3210417-4BAC-1C78-BD93-4BDD286247D9 :)