Post

Replies

Boosts

Views

Activity

unable to change name of apple bluetooth keyboard
10.15.3 BetaMacBook Pro Retina 15" Mid 2014Apple Wireless Keyboard A1314Hello, it seems there is a bug which prevents me from changing the name of my keyboard. I tried to change the name in bluetooth system preferences, right-click change name. the new name will be displayed in the preferences window. but in the bluetooth menu at the top of the screen there is still the old name displayed. when I close and reopen the bluetooth system preferences the old name is displayed again.I already tried the option/shift -> bluetooth menu -> reset connected devices, reset bluetooth module options with no success.Thank you very much
1
0
688
Jan ’20
playgrounds/ learn to code 2/ 3 gems, 4 switches/ problem with conditons in while loop
hello all,I am at the beginning of learning swift with the ipad playgrounds.in the chapter, where you have to go through a labyrinth till you collected 3 gems and toggled 4 switches, I have the following problem.ar numberGem = 0 var numberSwitch = 0 } func direction() { if isBlocked && isBlockedLeft { turnRight() } else if isBlocked && isBlockedRight { turnLeft() } } func gemSwitchVar() { if isOnGem { collectGem() numberGem += 1 } else if isOnClosedSwitch { toggleSwitch() numberSwitch += 1 } } while numberGem < 4 && numberSwitch < 5 { gemSwitchVar() direction() moveForward() }the while loop always stops after the figure collected 3 gems. It does not continue till it also toggled 4 switches. I always thought that with AND both conditions had to be fullfilled. And the OR operator would display the behaviour it does now.I had the same problem with a while loop in an earlier chapter where I tried a while loop likewhile !isBlocked && !isBlockLeft && !isBlockedRightto make my figure walk till the end of the course, which was blocked in the upper way.Where is my thought error.
2
0
5.2k
Mar ’19