Post

Replies

Boosts

Views

Activity

Inserting SF Symbols in a string ?
Hello everyone,That's for objective cI would like to insert a sf symbo into a string for a title of a AlertViewController ?UIAlertAction* mailAction = [UIAlertAction actionWithTitle:[@" " stringByAppendingString:NSLocalizedString(kSENDBYMAIL, @"")] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [self createMail:alert]; }];I tryed as below but I know it's wrong, it's just to precise ma question ;-) :UIAlertAction* mailAction = [UIAlertAction actionWithTitle:[[UIImage systemImage:@"envelope " stringByAppendingString:NSLocalizedString(kSENDBYMAIL, @"")] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [self createMail:alert]; }];Thanks for a hintDon
2
0
8k
Mar ’20
Duplicate output file
Hi everyone.Multiple commands produce '/Users/username/Library/Developer/Xcode/DerivedData/myApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist':1) Target 'myApp' (project 'myApp') has copy command from '/Users/username/Documents/Custom-Projects/aFolder/myApp/myApp/Info.plist' to '/Users/username/Library/Developer/Xcode/DerivedData/myApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist'2) Target 'myApp' (project 'myApp') has process command with output '/Users/username/Library/Developer/Xcode/DerivedData/myApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist'I think I did something wrong somewhere but I don't know where.I have a project with two targets, the difference between both are the name of the app and, of course, the info.plist.Both targets compile fine till yesterday afternoon, one target compile fine but the other not with the following message:I work with Xcode 11.x.x and with the new build system (not the legacy) and that for a long time.I checked everything I can and finally, I restaured a copy of my app from TimeMachine but the probleme stay.When I try to compile, the following error message appear immediately:Showing Recent MessagesBuild target MyApp of project MyApp with configuration Debugwarning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users/theDev/Documents/Custom-Projects/MyFolder/MyApp/MyApp/Info.plist'. (in target 'MyApp' from project 'MyApp')warning: duplicate output file '/Users/theDev/Library/Developer/Xcode/DerivedData/MyApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/MyApp.app/Info.plist' on task: ProcessInfoPlistFile /Users/theDev/Library/Developer/Xcode/DerivedData/MyApp-cqsvatsweajrlwgztrbdqodhawmh/Build/Products/Debug-iphonesimulator/MyApp.app/Info.plist /Users/theDev/Documents/Custom-Projects/GOKYO/MyApp/MyApp/Info.plist (in target 'MyApp' from project 'MyApp')So I think it's not in my app but somewhere on my MacBook Pro ?I would appreciatye if someone could help.Thanks
5
0
15k
Mar ’20
ViewController do zoom in behind a UIAlertController
Hello everyone, I'm not sure how to ask my question?When my UIAlertController appears, my ViewController in the background zoom (grows)?I use the code below in objective-c Xcode 11.3.1:I can't figure it out why ? I would apreciate if someone can make me on the way.- (void)productDescription:(NSInteger)index { SKProduct *product = _products[index]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:product.localizedTitle message:product.localizedDescription preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(kOK,@"") style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { [self buyProduct:index]; } ]; UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:NSLocalizedString(kCANCEL,@"") style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) { } ]; [alert addAction:okAction]; [alert addAction:cancelAction]; UIViewController *topController = self.window.rootViewController; while (topController.presentedViewController) topController = topController.presentedViewController; [topController presentViewController:alert animated:YES completion:nil]; } Here is the link to view the effect https://www.judogokyo.com/ftp/iPad_badZoom.mp4
4
0
935
Feb ’20
Creating a TabBarController in AppDelegate
Hi everyone, wish you a happy New Year 2020 !What could be wrong in that methode ? I'm wonder why "window" stay nil.import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. if let tabBarController = window?.rootViewController as? UITabBarController { let storyboard = UIStoryboard(name: "Main", bundle: nil) let vc = storyboard.instantiateViewController(withIdentifier: "NavController") vc.tabBarItem = UITabBarItem(tabBarSystemItem: .topRated, tag: 1) tabBarController.viewControllers?.append(vc) } return true }The lines #12 to #15 are never used !?https://www.judogokyo.com/ftp/P7MainStoryboard.pngThanks a lot
2
0
2.7k
Jan ’20