diff --git a/Classes/ObjectExplorers/Sections/Shortcuts/FLEXViewControllerShortcuts.m b/Classes/ObjectExplorers/Sections/Shortcuts/FLEXViewControllerShortcuts.m index 539102a813..1f07c40903 100644 --- a/Classes/ObjectExplorers/Sections/Shortcuts/FLEXViewControllerShortcuts.m +++ b/Classes/ObjectExplorers/Sections/Shortcuts/FLEXViewControllerShortcuts.m @@ -13,29 +13,10 @@ #import "FLEXAlert.h" @interface FLEXViewControllerShortcuts () -@property (nonatomic, readonly) UIViewController *viewController; -@property (nonatomic, readonly) BOOL viewControllerIsInUse; @end @implementation FLEXViewControllerShortcuts -#pragma mark - Internal - -- (UIViewController *)viewController { - return self.object; -} - -/// A view controller is "in use" if it's view is in a window, -/// or if it belongs to a navigation stack which is in use. -- (BOOL)viewControllerIsInUse { - if (self.viewController.view.window) { - return YES; - } - - return self.viewController.navigationController != nil; -} - - #pragma mark - Overrides + (instancetype)forObject:(UIViewController *)viewController { diff --git a/Classes/Utility/Categories/FLEXRuntime+UIKitHelpers.m b/Classes/Utility/Categories/FLEXRuntime+UIKitHelpers.m index 7e0edb26ee..fe31786df5 100644 --- a/Classes/Utility/Categories/FLEXRuntime+UIKitHelpers.m +++ b/Classes/Utility/Categories/FLEXRuntime+UIKitHelpers.m @@ -156,7 +156,7 @@ - (NSString *)reuseIdentifierWithTarget:(id)object { return nil; } if (targetNotNil) { id value = [self currentValueBeforeUnboxingWithTarget:object]; [items addObjectsFromArray:@[ - @"Value Preview", [self previewWithTarget:object], + @"Value Preview", [self previewWithTarget:object] ?: @"", @"Value Address", returnsObject ? [FLEXUtility addressOfObject:value] : @"", ]]; } @@ -462,7 +462,7 @@ - (NSString *)reuseIdentifierWithTarget:(id)object { return nil; } NSString *conformances = [conformanceNames componentsJoinedByString:@"\n"]; return @[ @"Name", self.name ?: @"", - @"Conformances", conformances, + @"Conformances", conformances ?: @"", ]; } diff --git a/Classes/Utility/Runtime/Objc/FLEXObjcInternal.h b/Classes/Utility/Runtime/Objc/FLEXObjcInternal.h index d1fcb284dc..8719708f0f 100644 --- a/Classes/Utility/Runtime/Objc/FLEXObjcInternal.h +++ b/Classes/Utility/Runtime/Objc/FLEXObjcInternal.h @@ -50,7 +50,11 @@ extern "C" { // originally _objc_isTaggedPointer // ////////////////////////////////////// NS_INLINE BOOL flex_isTaggedPointer(const void *ptr) { - return ((uintptr_t)ptr & _OBJC_TAG_MASK) == _OBJC_TAG_MASK; + #if OBJC_HAVE_TAGGED_POINTERS + return ((uintptr_t)ptr & _OBJC_TAG_MASK) == _OBJC_TAG_MASK; + #else + return NO; + #endif } #define FLEXIsTaggedPointer(obj) flex_isTaggedPointer((__bridge void *)obj)