iOS开发中的一些怪招.
#include 《objc/runtime.h》
Class LSApplicationWorkspace_class = objc_getClass("LSApplicationWorkspace");
NSObject* workspace = [LSApplicationWorkspace_class performSelector:@selector(defaultWorkspace)];
NSLog(@"apps: %@", [workspace performSelector:@selector(allApplications)]);
p UIScreen.mainScreen.bounds 会报error:property 'bounds' not found on object of type 'id'
先执行 expr @import UIKit
再执行 p UIScreen.mainScreen.bounds
[[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(0, -60) forBarMetrics:UIBarMetricsDefault];