Basically, you just set register it with NSUserDefaults.
123456
+(void)initialize{// Set user agent (the only problem is that we can't modify the User-Agent later in the program)NSDictionary*dictionnary=[[NSDictionaryalloc]initWithObjectsAndKeys:@"Your desired user agent",@"UserAgent",nil];[[NSUserDefaultsstandardUserDefaults]registerDefaults:dictionnary];[dictionnaryrelease];}