Skip to content

Instantly share code, notes, and snippets.

@Huang-Libo
Huang-Libo / gist:20317c86eecde6e492311c0b6adb7803
Created June 16, 2017 08:48 — forked from snikch/gist:3661188
Find the current top view controller for your iOS application
- (UIViewController *)topViewController{
return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController];
}
- (UIViewController *)topViewController:(UIViewController *)rootViewController
{
if (rootViewController.presentedViewController == nil) {
return rootViewController;
}
@Huang-Libo
Huang-Libo / YTKAnimatingRequestAccessory.h
Last active June 17, 2016 01:09 — forked from lancy/YTKAnimatingRequestAccessory.h
YTKAnimatingRequestAccessory
//
// YTKAnimatingRequestAccessory.h
// Ape_uni
//
// Created by Chenyu Lan on 10/30/14.
// Copyright (c) 2014 Fenbi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <YTKBaseRequest.h>