Search results for

xcode github

92,016 results found

Post

Replies

Boosts

Views

Activity

Reply to apply strike through on Special character Rp‎ 4.752.000
Tested on the Playground of Xcode 8.3.3.import UIKit let oldpricenameLabel = UILabel(frame: CGRect(x: 0, y: 0, width: 320, height: 120)) let productView = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 120)) let decodedString = Rp 514.800 var style = [NSStrikethroughStyleAttributeName: 2] let attributeString = NSMutableAttributedString(string: decodedString, attributes: style) oldpricenameLabel.attributedText = attributeString oldpricenameLabel.backgroundColor = UIColor.yellow productView.addSubview(oldpricenameLabel)With Quick Look into `productView`, I get something like this:Rp 514.800Seems this code acutally works.Please show enough code to reproduce your issue. I believe you can try with your Playground.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’17
Reply to Expressionvalue
Hello,Thank you for your code and your help !My code was:let formule = pow(x,3.0)let x = -2.0 //examplelet expression = NSExpression(format: formule)let objet = [x:x]let expression1 = NSExpression(format: formule)let ResultatFonction = expression1.expressionValue(with: objet, context: nil)as?DoubleMy wish is to automatically calculate the formula pow (x, y) for x between -100 and 100 and y between 1 and 10.I agree for the absolute, but only if the power is an even number.
Nov ’17
Reply to Redeem Code
If you're running beta versions of OS X, like 10.10.4, it won't work.Try redeeming the code in a stable version of OS X and then pause the download there. Once it is redeemed, you can download it from any OS X versions in the App Store > Purchased.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to CMake duplicate symbol '_main' when building Swift/CPP interop. Why?
Solution found. Somehow it was related to Ninja, but can't say why it's not working with Ninja that is default for Qt environment. When changed to Xcode - everything works fine for me. There are published by me example that is working with CMake/Xcode compilation under Qt Creator. This example oriented on building Swift modules for MacOS/iOS environment only. If you need to build Swift project for the Linux or Windows follow this example from Apple repository on Github
Nov ’24
Reply to UIButton extension method not called
So I had another look this morning. Running the app from Xcode 11.5 (11E608c) in an iPhone 11 iOS 13.4 simulator, the method in the extension is not called. However, if I terminate the app from Xcode (via the Stop button) and then relaunch it myself directly in the simulator the extension method is called. The same happens with an iPhone 11 iOS 13.5 simulator. On an iPhone 11 iOS 13.3 simulator it works in either case, whether it is launched from Xcode or not. I'll toss an example project on Github.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’20
Reply to iOS 16 crash
Look at this,hope it helps you - https://developer.apple.com/forums/thread/711820?answerId=745458022#745458022 Using a UITouch category to filter the deallocating object. - (BOOL)_wantsForwardingFromResponder: toNextResponder: withEvent: Github: https://github.com/SnowGirls/Objc-Deallocating . Just Drag the ObjcUtil.h/m and UITouch+FixCrashOnInputKeyboard.h/m into your Xcode project.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’23
Reply to Does Universal Links work with unsigned apple-app-site-association JSON?
After seeing the device log, I found out that the first launch of the app will download apple-app-site-association JSON file from HTTPS domain, not HTTP.So that is the problem.I am using GitHub pages for testing with HTTPS domain.But the next problem I am facing is that iOS does not download the JSON file from GitHub page without www prefix (GitHub only provide https://hieuth.github.io/ not https://www.hieuth.github.io/)
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to Watch Connectivity - WCSessionDelegate methods not called (simulator)
I'm having exatly the same problem, but with an actual Watch and iPhone (ie not simulator). Interestingly, the Apple sample code for WCSession, Potloc, had the same problem in a beta and/or Xcode version, then worked OK in another, and now fails to complie under the latest Xcode beta. Unfortunately I have two development environments that have had different versions of Xcode and OS X at various times combined with the iOS 9 and OS2 betas, so I haven't kept track of what version of Potloc worked in which specific environment.This is very frustrating.Regards,Michael
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to No Swift Package Manager for iOS
The new build system available for preview in the Xcode 9 beta is probably a necessary step toward adding support for iOS/watchOS/tvOS, and toward making the Swift Package Manager an integrated option within Xcode.For more info you can search the web for swift-llbuild and check out the apple repository on github.
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’17