简体   繁体   中英

Passing $(PRODUCT_BUNDLE_IDENTIFIER) to a parameter while using 3D Touch quick actions

While using 3D Touch quick actions, $(PRODUCT_BUNDLE_IDENTIFIER) is used while setting up static quick actions. Is there a way to pass $(PRODUCT_BUNDLE_IDENTIFIER) to a variable/constant, such that any change in it is reflected while checking for the same in AppDelegate.swift?

Screenshot

You can use this

Swift

let bundleIdentifier = Bundle.main.bundleIdentifier

Objective-c

NSString *bundleIdentifier = [[NSBundle mainBundle] bundleIdentifier];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM