Post

Replies

Boosts

Views

Activity

imovie shared video lost the titles
I am trying to complete my work on a preview for my App but have not been successful in getting a complete export from iMovie using the share file option. The video did appear a few minutes after the project data file but it does not contain the titles I had added and they still exist in the iMovie project. Is there a 'fix' for this and if not can someone suggest an alternative tool I can use to do this for item.
3
0
807
Mar ’22
why does intellisense insert a ? in this asignment
I have the following code let moveDirections = ["East": CGPoint(x: 1.0, y: 0.0), "North": CGPoint(x: 0.0, y: 1.0),           "South": CGPoint(x: 0.0, y: -1.0), "West": CGPoint(x: -1.0, y: 0.0), ] let direction = "South"         let cdx = moveDirections[direction]?.x Why does it insert the ? Surely the moveDirections variable contents is not optional.
3
0
525
Feb ’22
looking for a timer function I can use with using @objc
I am migrating a c# app to Xcode swift and have been looking for a swift equivalent to c# Time.time which is the time in seconds since app became active. I have seen the Timer class but all examples I have seen depend on using #selector and @objc. How do I get the Timer class to use a completion function? Or Is there another way of getting the app run time in seconds?
1
0
679
Feb ’22
Not getting value change using UISlider.observer
I am attempting to detect changes of a UISlider value using the observer option but I am not getting any output. Selected parts of code here class MainViewController: UIViewController {     @IBOutlet weak var speedSlider: UISlider!     var speedSliderObserver:  NSKeyValueObservation?     override func viewDidLoad() {   super.viewDidLoad()         setSettings()     }     func setSettings() {         speedSliderObserver = speedSlider.observe(.value, options: [.old, .new]) { object, change in             print("speedSlider from: (change.oldValue!), to: (change.newValue!)")         } } Am I using observe correctly or is there some other way?
1
0
1.2k
Feb ’22
my segue transition goes upward instead of sideways and does not completely cover screen
In my app using storyboard and spritekit developed in Xcode 12.5.1 uses segue connected button to bring up another storyboard which presents a scene and show a sprite. The segue sequence triggered by the use pressing the Play button and running the segue shows an upward transition and the scene with the sprite that when clicked animates that sprite. My problem is I was getting two events that are causing me issues. The first is that I was expecting a sidewards transition for the Show segue. and second that the scene only covers 2 thirds on the screen not all of it. Screenshots of. Xcode showing main storyboard and segue connections, simulator app Settings, app Game initial view and app Game with sprite animated. Anyone any hints for me for explanation of the first event and how to resolve the second which is spoiling my development time?
2
0
855
Feb ’22
xcode12 spritekit image shown as red X
I am trying to get a simple animated sprite image in a very basic game using SpriteKit and Xcode 12. I am creating an skspritenode with image named and setting its position form the touch point and adding it as a child but a red X image is shown on the simulator of iPhone 8 Plus. I have attached screenshots. Can someone help me with this?
2
0
942
Jan ’22
Xcode 12.5.1 SpriteKit SkScene tile set images not showing
When I start my project the tile added to my SKScene using the editor do not appear until after I have clicked on the tiles that was selected in the scene setup. Anyone any ideas why> Also should these tiles be in the list shown to the left of the scene as those sprites (not part of the tileset) I dragged into the scene are. I have attached screen shots of at start and after clicking the tiles.
1
0
713
Jan ’22
imovie shared video lost the titles
I am trying to complete my work on a preview for my App but have not been successful in getting a complete export from iMovie using the share file option. The video did appear a few minutes after the project data file but it does not contain the titles I had added and they still exist in the iMovie project. Is there a 'fix' for this and if not can someone suggest an alternative tool I can use to do this for item.
Replies
3
Boosts
0
Views
807
Activity
Mar ’22
why does intellisense insert a ? in this asignment
I have the following code let moveDirections = ["East": CGPoint(x: 1.0, y: 0.0), "North": CGPoint(x: 0.0, y: 1.0),           "South": CGPoint(x: 0.0, y: -1.0), "West": CGPoint(x: -1.0, y: 0.0), ] let direction = "South"         let cdx = moveDirections[direction]?.x Why does it insert the ? Surely the moveDirections variable contents is not optional.
Replies
3
Boosts
0
Views
525
Activity
Feb ’22
looking for a timer function I can use with using @objc
I am migrating a c# app to Xcode swift and have been looking for a swift equivalent to c# Time.time which is the time in seconds since app became active. I have seen the Timer class but all examples I have seen depend on using #selector and @objc. How do I get the Timer class to use a completion function? Or Is there another way of getting the app run time in seconds?
Replies
1
Boosts
0
Views
679
Activity
Feb ’22
Not getting value change using UISlider.observer
I am attempting to detect changes of a UISlider value using the observer option but I am not getting any output. Selected parts of code here class MainViewController: UIViewController {     @IBOutlet weak var speedSlider: UISlider!     var speedSliderObserver:  NSKeyValueObservation?     override func viewDidLoad() {   super.viewDidLoad()         setSettings()     }     func setSettings() {         speedSliderObserver = speedSlider.observe(.value, options: [.old, .new]) { object, change in             print("speedSlider from: (change.oldValue!), to: (change.newValue!)")         } } Am I using observe correctly or is there some other way?
Replies
1
Boosts
0
Views
1.2k
Activity
Feb ’22
my segue transition goes upward instead of sideways and does not completely cover screen
In my app using storyboard and spritekit developed in Xcode 12.5.1 uses segue connected button to bring up another storyboard which presents a scene and show a sprite. The segue sequence triggered by the use pressing the Play button and running the segue shows an upward transition and the scene with the sprite that when clicked animates that sprite. My problem is I was getting two events that are causing me issues. The first is that I was expecting a sidewards transition for the Show segue. and second that the scene only covers 2 thirds on the screen not all of it. Screenshots of. Xcode showing main storyboard and segue connections, simulator app Settings, app Game initial view and app Game with sprite animated. Anyone any hints for me for explanation of the first event and how to resolve the second which is spoiling my development time?
Replies
2
Boosts
0
Views
855
Activity
Feb ’22
xcode12 spritekit image shown as red X
I am trying to get a simple animated sprite image in a very basic game using SpriteKit and Xcode 12. I am creating an skspritenode with image named and setting its position form the touch point and adding it as a child but a red X image is shown on the simulator of iPhone 8 Plus. I have attached screenshots. Can someone help me with this?
Replies
2
Boosts
0
Views
942
Activity
Jan ’22
is there a way to make physics body border line more visible
I am having problems with verifying the SKPhysicsBody setup which is not working. I am having difficulty seeing the PhysicsBody border line in the scene. Is there any way of making the border bigger, different colour, etc?
Replies
1
Boosts
0
Views
582
Activity
Jan ’22
Xcode 12.5.1 SKTexture error loading image resource
I have not been able to find a solution to this problem. Screenshots attached for run error, asset setup, code used to load image. Anyone any hints for me on this?
Replies
1
Boosts
0
Views
788
Activity
Jan ’22
Xcode 12.5.1 SpriteKit SkScene tile set images not showing
When I start my project the tile added to my SKScene using the editor do not appear until after I have clicked on the tiles that was selected in the scene setup. Anyone any ideas why> Also should these tiles be in the list shown to the left of the scene as those sprites (not part of the tileset) I dragged into the scene are. I have attached screen shots of at start and after clicking the tiles.
Replies
1
Boosts
0
Views
713
Activity
Jan ’22
xcode 12.5.1 SpriteKit scene addchild fails reason already present
Using Xcode 12.5.1 and getting uncaught exception when trying to add child to the scene. Attached screenshot shows the code being used and output containing the prints data and the error. Anyone any ideas for me.
Replies
5
Boosts
0
Views
827
Activity
Jan ’22