Skip to content

Instantly share code, notes, and snippets.

Tim timunrue

Block or report user

Report or block timunrue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:54d12e372eb73bb430e511686eaee312
Invisible ball -
timunrue / hidebar.m
Created Jun 10, 2016
Hide status bar programmatically with animation
View hidebar.m
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
[UIView beginAnimations:@"Statusbar hide" context:nil];
[UIView setAnimationDuration:0.5];
[self.view setFrame:CGRectMake(0, 0, 320, 480)];
[UIView commitAnimations];
View uiview.m
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”Title”
message:@”The body!”
[alert show];
[alert release];
timunrue / text2buttonAlert.m
Created Jun 10, 2016
Alert using UIAlertController (TextField and Two buttons)
View text2buttonAlert.m
// Show a text entry alert with two custom buttons.
- (void)showTextEntryAlert {
NSString *title = NSLocalizedString(@"Short_title", nil);
NSString *message = NSLocalizedString(@"Message", nil);
NSString *cancelButtonTitle = NSLocalizedString(@"Cancel", nil);
NSString *otherButtonTitle = NSLocalizedString(@"OK", nil);
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:message preferredStyle:UIAlertControllerStyleAlert];
timunrue /
Last active Nov 22, 2019
Install byobu to CentOS 7
rpm -ivh epel-release-7-5.noarch.rpm
sudo yum install byobu -y --enablerepo=epel-testing
You can’t perform that action at this time.