Skip to content

Instantly share code, notes, and snippets.

View wanggang316's full-sized avatar
🙃
Javaing...

Gump wanggang316

🙃
Javaing...
View GitHub Profile
__block BOOL flag = YES; //0 up 1 down
UINavigationBar *navbar = [[self navigationController] navigationBar];
[UIView animateWithDuration:0.3 animations:^(void)
{
if ([[UIApplication sharedApplication] respondsToSelector:@selector(setStatusBarHidden:withAnimation:)]) {
[[UIApplication sharedApplication] setStatusBarHidden:flag withAnimation:NO];
}
if (flag) {
#include <hash_map>
#include <iostream>
#include <list>
#include <vector>
#include <algorithm>
using namespace std;
using namespace stdext;
int R,C;//地图行列
@wanggang316
wanggang316 / helloworld
Created May 26, 2014 08:34
Hello Gist
I MUST COME ON!