[_tabBarController.moreNavigationController.navigationBar setHidden:YES];
or
[tabBarController.moreNavigationController.navigationBar setHidden:YES];
[_tabBarController.moreNavigationController.navigationBar setHidden:YES];
or
[tabBarController.moreNavigationController.navigationBar setHidden:YES];
var flashvars = {};
flashvars.clickTag = "http://www.some.com";
var params = {};
var attributes = {};
swfobject.embedSWF("some.swf","myAlternativeContent", "300", "250", "8.0.0", false, flashvars, params,attributes);
NSNumberFormatter* nf = [[[NSNumberFormatter alloc] init] autorelease];
nf.positiveFormat = @”0.##”;
NSString* s = [nf stringFromNumber: [NSNumber numberWithFloat: val]];
return s;
NSDateFormatter *dateFormatter = [[[NSDateFormatter alloc] init] autorelease];
[dateFormatter setDateFormat:@"MMM dd, yyyy"];
NSString *strDate = [dateFormatter stringFromDate:[NSDate date]];
NSLog(@”NSUserDefaults dump: %@”, [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);
- (void)addButton {
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(10, 10, 300, 32);
[button setTitle:@"Do Something" forState:UIControlStateNormal];
[button addTarget:self action:@selector(doSomething) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:button];
}
-(void)doSomething {
NSLog(@”Something Here”);
}
Remove spaces and tabs from both ends of a string:
NSString *cleanString = [dirtyString stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]];
Remove spaces and tabs and newlines from the string, use the whitespaceAndNewlineCharacterSet:
NSString *cleanString = [dirtyString stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];
UIProgressView *progressView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
CGRect frame = progressView.frame;
frame.size.width = 200;
frame.origin.x = 100;
frame.origin.y = 12;
progressView.frame = frame;
progressView.progress = 0.1f;
[self.view addSubview:progressView];
if (visionCreatorProgressBar == nil) {
CGRect bounds = CGRectMake( -1, 44, 322, 29 );
visionCreatorProgressBar = [[UIView alloc] initWithFrame: bounds];
[visionCreatorProgressBar setBackgroundColor: [UIColor colorWithRed:0.584 green:0.086 blue:0.114 alpha:1.000]];
visionCreatorProgressBar.layer.borderColor = [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:0.250].CGColor;
visionCreatorProgressBar.layer.borderWidth = 1.0f;
[window addSubview: visionCreatorProgressBar];
}
add to app delegate
+ (void)initialize {
// Set user agent (the only problem is that we can't modify the User-Agent later in the program)
NSDictionary *dictionnary = [[NSDictionary alloc] initWithObjectsAndKeys:@"Your desired user agent", @"UserAgent", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:dictionnary];
[dictionnary release];
}
I found this at:
http://www.mphweb.com/en/blog/easily-set-user-agent-uiwebview
NSLog(@”Selected text = %@”,[yourPickerViewSourceArray objectAtIndex:[yourPickerView selectedRowInComponent:0]]);