Berry Blue
Berry Blue

Reputation: 16482

Check if string constant exists in Objective-C

How do I check whether a string constant is defined in Objective-C?

Using UIViewControllerShowDetailTargetDidChangeNotification on iOS 7 causes a crash.

Upvotes: 4

Views: 556

Answers (1)

matt
matt

Reputation: 535047

if (&UIViewControllerShowDetailTargetDidChangeNotification) {
    // ... safe to use ...
}

Upvotes: 5

Related Questions