Post

Replies

Boosts

Views

Activity

Reply to Restricting Screenshot on App
restrict users to take screenshot for the same from apple side What do you mean by "Apple side" ? If the question is about screenshots, that's a question that was asked many times. There is no good method for forbidding screen shots. Even if you found something, you will not prevent user from taking a photo with another camera.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to How to display a score count
Great you found a solution. A few comments on good practices on the forum: describe precisely the erros you get and where you get it. what I am doing is throwing errors is of little use. When you have a solution, explain what you changed. That may be useful for others who will read your problem. Most likely, in your case scoreLabel.text = score you try to give an Int value to a String property. That cannot work. scoreLabel.text = String(score) Now, both sides are String. Have a good continuation.
May ’21
Reply to Build success => can install to sumulator => but can't install to physical device
Have you check (in Xcode) the signature of the app ? Select the App in the file browser on the left. Then signing and capabilities. What do you get there ? Did you choose automatically sign ? You should also check that bundle identifier is the same as in info.plist. And do an option-clean build folder. See the discussion here https://developer.apple.com/forums/thread/126326?page=2: …the problem had to do with bundle identifier. I had manually edited the entry in Info.plist but the entry in Signing & Capabilities showed something else.  I changed in Signing & Capabilities and Info.Plist updated to a variable $(PRODUCT_BUNDLE_IDENTIFIER). I then had to clean the build, remove any previous apps installed and rebuild. `
May ’21
Reply to Info.plist localization strings
Have you created localized infoPlist.Strings files ? They should look like: /* (No Comment) */ "CFBundleName" = "App Name"; /* (No Comment) */ "NSCameraUsageDescription" = "App a besoin d'accéder à l'appareil photo pour prendre en photo ou pour un scan."; /* (No Comment) */ "NSPhotoLibraryUsageDescription" = "App a besoin d'accéder à vos photos pour l'utiliser pour vos données personnalisés.";
May ’21
Reply to How do you show a global Game Center leaderboard? Using a playerScope of .global doesn't work.
constructor that I tried that fails What error message do you get ? Could you show the code where you call this ? Did you authenticate as required ? Important Your application must authenticate a local player before you can use any Game Center classes. If there is no authenticated player, your application receives a GKError.Code.notAuthenticated error. For more information on authentication, see Game Center Programming Guide.
Topic: UI Frameworks SubTopic: UIKit Tags:
May ’21
Reply to I can't export my app in Xcode
I need to connect my phone to the pc  you mean the Mac ? i have the new macbook pro and i don't have any adapter to use AFAIK, you need USB connection to initialise the connection. https://stackoverflow.com/questions/23827168/ios-run-debug-install-builds-over-wi-fi Later, you can run on Wifi, but that does not solve your problem. You should get the appropriate cable.
May ’21
Reply to Need help converting JSON objects from double & floats to strings
You are trying to have a "reverse cast" !You cannot write:     Double(tempInFLabel.text!) = temp ** But you should write     tempInFLabel.text = String(temp) You can also format this to have a fixed number of decimals (here, 2 decimals): tempInFLabel.text = String(format: "%.2f", temp) latLabel.text = String(format: "%.2f", lat) longLabel.text = String(format: "%.2f", long)
Topic: Programming Languages SubTopic: Swift Tags:
May ’21