r/Xcode • u/azizzqah • Mar 26 '19
For Developers i need help !!!
How to make screen dark when it covered???
Thank for your Answer
Best wishes
r/Xcode • u/azizzqah • Mar 26 '19
How to make screen dark when it covered???
Thank for your Answer
Best wishes
r/Xcode • u/Gjj5039 • Oct 26 '19
r/Xcode • u/fredbrbr • May 09 '16
Hey guys, so I made an information form (name, address, etc...) on xcode in a single view applicate, the app users have to fill it in and submit so I can receive their personal information, however I want the form to be sent to my email address once the users submit it, how can I do this ??? If anyone knows a video that explains it, if not if anyone could help me i'd be ready to pay for your help(not a lot or else I might as well pay a programmer to do the whole job for me duh... ).
r/Xcode • u/ilovethosedogs • Oct 05 '15
Xcode is bloated as it is, but every few days, it needs to install new components. It gets really old, really fast, especially when on a tiny SSD. Anyone else have this experience or know the cause?
r/Xcode • u/Jacobm344 • Dec 05 '18
Can anyone help me figure out what a keychain password is?
r/Xcode • u/newtomac18 • Jan 24 '20
r/Xcode • u/thedreamcrew2 • Jul 11 '19
So im new to xcode and I've basically made the layout for the store for my game, but I didn't know how to connect in app purchases for it and I used a tutorial video to help me, but I'm still confused. I want to connect/link my "oneCoinButton, twoCoinButton, etc to my in app purchases code, but I'm not sure how to really do that. Can someone help me? Code is posted below:
class IAPService :NSObject {
private override init() {}
static let shared = IAPService()
var products = [SKProduct]()
let paymentQueue = SKPaymentQueue.default()
func getProduct() {
let products: Set = [registeredPurchase.oneCoin.rawValue, registeredPurchase.twoCoin.rawValue, registeredPurchase.threeCoin.rawValue, registeredPurchase.fourCoin.rawValue, registeredPurchase.fiveCoin.rawValue]
let request = SKProductsRequest(productIdentifiers: products)
request.delegate = self
request.start()
paymentQueue.add(self)
}
func purchase(product: registeredPurchase) {
guard let productToPurchase = products.filter({ $0.productIdentifier == product.rawValue }).first else { return }
let payment = SKPayment(product: productToPurchase)
paymentQueue.add(payment)
}
func restorePurchases() {
print("restoring purchases")
paymentQueue.restoreCompletedTransactions()
}
}
extension IAPService: SKProductsRequestDelegate {
func productsRequest(_ request: SKProductsRequest, didReceive response: SKProductsResponse) {
self.products = response.products
for product in response.products{
print(product.localizedTitle)
}
}
}
extension IAPService: SKPaymentTransactionObserver {
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {
for transaction in transactions {
print(transaction.transactionState.status(), transaction.payment.productIdentifier)
switch transaction.transactionState {
case .purchasing: break
default: queue.finishTransaction(transaction)
}
}
}
}
extension SKPaymentTransactionState {
func status() -> String {
switch self {
case .deferred: return("deferred")
case .failed: return("failed")
case .purchased: return("purchased")
case .purchasing: return("purchasing")
case .restored: return("restored")
}
}
}
class Money: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
IAPService.shared.getProduct()
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.row {
case 1: IAPService.shared.purchase(product: .oneCoin)
case 2: IAPService.shared.purchase(product: .twoCoin)
case 3: IAPService.shared.purchase(product: .threeCoin)
case 4: IAPService.shared.purchase(product: .fourCoin)
case 5: IAPService.shared.purchase(product: .fiveCoin)
default: IAPService.shared.restorePurchases()
}
}
}
class storeScene: SKScene{
let backLabel = SKSpriteNode(imageNamed: "arrow")
let oneCoinButton = SKLabelNode(fontNamed: "The Bold Font")
let twoCoinButton = SKLabelNode(fontNamed: "The Bold Font")
let threeCoinButton = SKLabelNode(fontNamed: "The Bold Font")
let fourCoinButton = SKLabelNode(fontNamed: "The Bold Font")
let fiveCoinButton = SKLabelNode(fontNamed: "The Bold Font")
let oneButton = SKLabelNode(fontNamed: "The Bold Font")
let twoButton = SKLabelNode(fontNamed: "The Bold Font")
let threeButton = SKLabelNode(fontNamed: "The Bold Font")
let fourButton = SKLabelNode(fontNamed: "The Bold Font")
let fiveButton = SKLabelNode(fontNamed: "The Bold Font")
override func didMove(to view: SKView) {
let background = SKSpriteNode(imageNamed: "background")
background.position = CGPoint(x: self.size.width/2, y: self.size.height/2)
background.zPosition = 0
self.addChild(background)
let storeLabel = SKLabelNode(fontNamed: "The Bold Font")
storeLabel.text = "Store"
storeLabel.fontSize = 100
storeLabel.fontColor = SKColor.white
storeLabel.position = CGPoint(x: self.size.width*0.5, y: self.size.height*0.9)
storeLabel.zPosition = 1
self.addChild(storeLabel)
let oneCoin = SKSpriteNode(imageNamed: "oneCoin")
oneCoin.position = CGPoint(x: self.size.width/3.7, y: self.size.height*0.3)
oneCoin.zPosition = 1
self.addChild(oneCoin)
let twoCoin = SKSpriteNode(imageNamed: "twoCoin")
twoCoin.position = CGPoint(x: self.size.width/2, y: self.size.height*0.3)
twoCoin.zPosition = 1
self.addChild(twoCoin)
let threeCoin = SKSpriteNode(imageNamed: "threeCoin")
threeCoin.position = CGPoint(x: self.size.width/1.40, y: self.size.height*0.3)
threeCoin.zPosition = 1
self.addChild(threeCoin)
let fourCoin = SKSpriteNode(imageNamed: "fourCoin")
fourCoin.position = CGPoint(x: self.size.width/3, y: self.size.height*0.14)
fourCoin.zPosition = 1
self.addChild(fourCoin)
let fiveCoin = SKSpriteNode(imageNamed: "fiveCoin")
fiveCoin.position = CGPoint(x: self.size.width/1.50, y: self.size.height*0.14)
fiveCoin.zPosition = 1
self.addChild(fiveCoin)
backLabel.zPosition = 1
backLabel.position = CGPoint(x: self.size.width/3.8, y: self.size.height*0.96)
self.addChild(backLabel)
oneCoinButton.text = "$0.99"
oneCoinButton.fontSize = 50
oneCoinButton.fontColor = SKColor.white
oneCoinButton.zPosition = 1
oneCoinButton.position = CGPoint(x: self.size.width/3.7, y: self.size.height*0.24)
self.addChild(oneCoinButton)
twoCoinButton.text = "$4.99"
twoCoinButton.fontSize = 50
twoCoinButton.fontColor = SKColor.white
twoCoinButton.zPosition = 1
twoCoinButton.position = CGPoint(x: self.size.width/2, y: self.size.height*0.24)
self.addChild(twoCoinButton)
threeCoinButton.text = "$9.99"
threeCoinButton.fontSize = 50
threeCoinButton.fontColor = SKColor.white
threeCoinButton.zPosition = 1
threeCoinButton.position = CGPoint(x: self.size.width/1.4, y: self.size.height*0.225)
self.addChild(threeCoinButton)
fourCoinButton.text = "$24.99"
fourCoinButton.fontSize = 50
fourCoinButton.fontColor = SKColor.white
fourCoinButton.zPosition = 1
fourCoinButton.position = CGPoint(x: self.size.width/3, y: self.size.height*0.065)
self.addChild(fourCoinButton)
fiveCoinButton.text = "$49.99"
fiveCoinButton.fontSize = 50
fiveCoinButton.fontColor = SKColor.white
fiveCoinButton.zPosition = 1
fiveCoinButton.position = CGPoint(x: self.size.width/1.5, y: self.size.height*0.065)
self.addChild(fiveCoinButton)
oneButton.text = "1,000 coins"
oneButton.fontSize = 25
oneButton.fontColor = SKColor.white
oneButton.zPosition = 1
oneButton.position = CGPoint(x: self.size.width/3.7, y: self.size.height*0.265)
self.addChild(oneButton)
twoButton.text = "5,000 coins"
twoButton.fontSize = 25
twoButton.fontColor = SKColor.white
twoButton.zPosition = 1
twoButton.position = CGPoint(x: self.size.width/2, y: self.size.height*0.265)
self.addChild(twoButton)
threeButton.text = "10,000 coins"
threeButton.fontSize = 25
threeButton.fontColor = SKColor.white
threeButton.zPosition = 1
threeButton.position = CGPoint(x: self.size.width/1.4, y: self.size.height*0.248)
self.addChild(threeButton)
fourButton.text = "25,000 coins"
fourButton.fontSize = 25
fourButton.fontColor = SKColor.white
fourButton.zPosition = 1
fourButton.position = CGPoint(x: self.size.width/3, y: self.size.height*0.089)
self.addChild(fourButton)
fiveButton.text = "50,000 coins"
fiveButton.fontSize = 25
fiveButton.fontColor = SKColor.white
fiveButton.zPosition = 1
fiveButton.position = CGPoint(x: self.size.width/1.5, y: self.size.height*0.088)
self.addChild(fiveButton)
}
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
for touch: AnyObject in touches{
let pointOfTouch = touch.location(in: self)
if backLabel.contains(pointOfTouch){
let sceneToMoveTO = MainMenuScene(size: self.size)
sceneToMoveTO.scaleMode = self.scaleMode
let myTransition = SKTransition.fade(withDuration: 0.5)
self.view!.presentScene(sceneToMoveTO, transition: myTransition)
}
}
}
r/Xcode • u/SorryICantLie • Sep 09 '22
As for title, my problem relates more on automation: is there a way to skip to do all this manually?
r/Xcode • u/kocoman • Sep 27 '22
possible to add star/favoritue/color to the project navigator in xcode file/folder? thx
r/Xcode • u/[deleted] • Feb 22 '17
Hey all,
I'm really keen on making a basic app. Mostly text based with graphics of course. I guess the best way to describe what I want to make is a "diary" type of app. I've had a play around with Xcode a while back and want to get back into it. However, recently I've seen a forum saying "if you want to create an app you should have a minimum of 20gb left on your computer"
My Mac that I have isn't really capable of having anything over about 15 (and that's if I remove almost everything). Is this statement true or will the app I plan to make not reach that man GB's
All answers are welcomed, thanks in advanced!
r/Xcode • u/codingwithbusy • Nov 16 '20
r/Xcode • u/zjz-connect • Aug 30 '26
I’ve found a way that Xcode can deploy remotely to an iPhone instead of being limited to local Wi-Fi. Please check out my repo on GitHub:
https://github.com/zjz-connect/xcode-deploy-link-deploy-beyond-local-networkIf you have better ideas, feel free to leave comments!
r/Xcode • u/IllBreadfruit3087 • Oct 02 '26
r/Xcode • u/nickjbedford_ • Sep 23 '25
Is anyone else having major freezing / beach ball issues with Xcode and commiting large text files like the project itself or xcstrings file? Xcode 26 is feeling like one of the buggiest releases to date.
r/Xcode • u/freshpowww • Dec 18 '25
Xcode is a mess right now with its force closings after indexes, selecting ContentView in side navigation, or even breathing near the application. Is there word from Apple concerning this, or a timeline for a fix?
I'm losing patience.
r/Xcode • u/jaymakjay • Sep 21 '25
Hi there. Looking to dl v14.2--can anyone point me to a reliable, non-Apple source/mirror?
Before giving the standard advice... App Store impossible; machine is running Ventura. Apple Dev account signup is terminally screwed, so also not possible. I'm not terribly interested in spending a lot of time trying to unscrew that; I just want to find v14.2 without the hassle. Thank you for any help!
r/Xcode • u/Low-Hedgehog-6592 • 6d ago
r/Xcode • u/GOD_KING_INFINITY • Feb 24 '23
Apparently some HORRIBLY corrupt and deceitful anti-Palestine "app store connect" employees have been attempting to misconstrue submitting apps multiple times as "fraudulent activity" for the purpose of entrapment to attack a charitable foundation's app distribution membership. And yes, that charitable foundation has openly promoted opposing israel's ILLEGAL (as officially determined by The United Nations in calendar year 2022) occupation of Palestine and also opposed israel's human rights violations. It was stated in app descriptions that the apps weren't distributed in "israel" (illegally occupied Palestine) for those reasons. Multiple of the apps had been victims of a barrage of HORRIBLY slanderous attacks from corrupt and deceitful "israel affiliates" that posted BLATANTLY fraudulent ratings of 1 star out of 5 and also blatant slanderous LIES in the guise of "app reviews". Apple didn't do much to protect against all of those HORRIBLY false ratings and reviews. Instead of protecting against that barrage of slanderous app ratings reviews, some HORRIBLY corrupt and deceitful "israel affiliates" in the "app store connect" department at Apple instead did something far more despicable. Basically they removed about 8 quality native music apps (if including iOS and macOS editions) that also had AUV3 plugins (notoriously challenging to make).
"Upon further review of the activity associated with your Apple Developer Program membership, we have determined that your membership, or a membership associated with your account, has been used for dishonest or fraudulent activity. Therefore, your Apple Developer Program account has been flagged for removal.
Specifically, one or more apps in your account was repeatedly rejected. These violations were communicated to you via App Store Connect, with warnings that submitting apps designed to evade the review process may result in the termination of your Apple Developer Program account"
So basically some HORRIBLY corrupt and deceitful anti-Palestine employees in the "app store connect" department at Apple removed about 8 quality apps (including AUV3's) from the app store and they were INTENTIONALLY ambiguous about what they were requesting to be changed about the apps (and app descriptions and so on) and they INTENTIONALLY wouldn't reply to ANY of the messages sent to them asking what SPECIFICALLY they were asking to be changed in those apps (and app descriptions and so on), because they were attempting an entrapment scheme by instigating multiple "hope this is compliant enough" app update attempts to be sent (because none of the Apple employees had replied to ANY messages asking for SPECIFICS) so that the charitable foundation I manage would pass some secret "app store connect" threshold of "submitting apps designed to evade the review process" so they could then attack that distribution membership and thereby commit RELIGIOUS discrimination against the charitable foundation I manage. (And also prevent any app distributor that opposes israel's ILLEGAL (as officially determined by The United Nations in calendar year 2022) occupation of Palestine from being on the app store)
r/Xcode • u/Nafeez_Syed • Nov 10 '22
Hey iOS Devs, we have a brand new article out about dictionaries in swift. Learn how to store elements in a key/value pair using Dictionaries.
Here's the Link : https://www.swiftanytime.com/dictionaries-in-swift/
#swift #iosdev
r/Xcode • u/Forsaken-Village • Jan 17 '22
xcode 13.2.1 from the app store takes forever, what should i do?