Skip to content

Instantly share code, notes, and snippets.

View nvkiet's full-sized avatar

Kiet Nguyen - CoFounder & CEO at GrabLingo.com nvkiet

View GitHub Profile
@nvkiet
nvkiet / UIViewAnimation.markdown
Last active October 25, 2015 16:21
UIView Animation
[UIView animateWithDuration:0.5 delay:0 usingSpringWithDamping:0.5 initialSpringVelocity:10.0 options:UIViewAnimationOptionCurveEaseIn animations:^{
        self.view.superview.top -= FilterViewHeight;
    } completion:^(BOOL finished) {
        self.isShown = YES;
        if ([self.delegate respondsToSelector:@selector(filterViewControllerDidShow:)]) {
            [self.delegate filterViewControllerDidShow:self];
        }
 }];
@nvkiet
nvkiet / UIImagePickerController.markdown
Last active November 11, 2015 05:54
UIImagePickerController
+ (UIImagePickerController *)tp_getCameraPickeWithParentViewController:(id<UINavigationControllerDelegate, UIImagePickerControllerDelegate, TPOverlayCameraViewDelegate>)parentViewController {
    
    if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
        UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init];
        imagePickerController.modalPresentationStyle = UIModalPresentationCurrentContext;
        imagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
        imagePickerController.delegate = parentViewController;
        imagePickerController.showsCameraControls = NO;
        

#Users Resources

GET users/me

##Description Get my User object


Parameters