mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-04-25 09:48:36 +02:00
Updated examples.
This commit is contained in:
@@ -55,12 +55,12 @@ extension ViewController {
|
|||||||
|
|
||||||
// Only set it if we are using Armchair localizations
|
// Only set it if we are using Armchair localizations
|
||||||
if !Armchair.useMainAppBundleForLocalizations() {
|
if !Armchair.useMainAppBundleForLocalizations() {
|
||||||
var currentLocalization: NSString = NSBundle.mainBundle().preferredLocalizations[0] as NSString
|
var currentLocalization: NSString = NSBundle.mainBundle().preferredLocalizations[0] as! NSString
|
||||||
// Only set it if we are using a different language than this apps development language
|
// Only set it if we are using a different language than this apps development language
|
||||||
if let developmentLocalization = NSBundle.mainBundle().developmentLocalization {
|
if let developmentLocalization = NSBundle.mainBundle().developmentLocalization {
|
||||||
if currentLocalization != developmentLocalization {
|
if currentLocalization != developmentLocalization {
|
||||||
languageLabelText = currentLocalization
|
languageLabelText = currentLocalization as String
|
||||||
if let displayName = NSLocale(localeIdentifier: currentLocalization).displayNameForKey(NSLocaleIdentifier, value:currentLocalization) {
|
if let displayName = NSLocale(localeIdentifier: currentLocalization as String).displayNameForKey(NSLocaleIdentifier, value:currentLocalization) {
|
||||||
languageLabelText = "\(displayName): \(currentLocalization)"
|
languageLabelText = "\(displayName): \(currentLocalization)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import SystemConfiguration
|
|||||||
#if os(iOS)
|
#if os(iOS)
|
||||||
import UIKit
|
import UIKit
|
||||||
#elseif os(OSX)
|
#elseif os(OSX)
|
||||||
import Appkit
|
import AppKit
|
||||||
#else
|
#else
|
||||||
// Not yet supported
|
// Not yet supported
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -421,7 +421,7 @@
|
|||||||
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
|
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
|
GCC_PREPROCESSOR_DEFINITIONS = "$(inherited)";
|
||||||
INFOPLIST_FILE = "$(SRCROOT)/Example/Info-iOS.plist";
|
INFOPLIST_FILE = "$(SRCROOT)/Example/Info-iOS.plist";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
OTHER_SWIFT_FLAGS = "";
|
OTHER_SWIFT_FLAGS = "";
|
||||||
PRODUCT_NAME = "iOS Example";
|
PRODUCT_NAME = "iOS Example";
|
||||||
@@ -438,7 +438,7 @@
|
|||||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||||
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
|
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
|
||||||
INFOPLIST_FILE = "$(SRCROOT)/Example/Info-iOS.plist";
|
INFOPLIST_FILE = "$(SRCROOT)/Example/Info-iOS.plist";
|
||||||
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
||||||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
||||||
PRODUCT_NAME = "iOS Example";
|
PRODUCT_NAME = "iOS Example";
|
||||||
PROVISIONING_PROFILE = "";
|
PROVISIONING_PROFILE = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user