PLBuildVersion issue in Spritekit

I've spent hours trying to solve this problem. After importing ads into my game and was about to update it, I keep getting this message every time I run this. objc[14381]: Class PLBuildVersion is implemented in both /Applications/
more »

2017-02-20 22:02 (0) Answers

Using only one AVAudioPlayer instead of three

I created three AVAudioPlayer, each plays an audio file. While the audio is playing the UIButton is set selected by audioPlayerDidFinishPlaying. Insted of using three different AVAudioPlayer, I would like to use only one AVAudioPlayer for the effici...
more »

2017-02-20 15:02 (1) Answers

How to create Model class in Objective C++?

I want to make Model class in objective c++ which contains Name & Email id. Like what we do in Swift 3 ex:- import UIKit class modelDemo: NSObject { var name : String = "" var emailId : String = "" } & we are accessing modelDemo...
more »

2017-02-20 14:02 (1) Answers

iOS : How to create .a file of Unity 3d export?

I have to integrate my unity 3d export into my existing native iOS app (Objective-C) So, need to create the static library of unity export but unable to create. I am using Xcode 8.2.1 and Unity 5.5.1f1. Is there any alternative other than the follo...
more »

2017-02-20 11:02 (0) Answers

Adding Spacing Between Basic Table View Cells

I have basic table view cells that I want to set some spacing between them. I tried = 8 and = 8 but that didn't work. I know I can create a custom cell, but I want to know how I ca...
more »

2017-02-20 10:02 (5) Answers

Reduce App Size in IOS

I created a xib with one cell contains UIImageView. imageview has leading, trailing, top, bottom constraints. xib is of 4kb and file size is 4kb. I created one more class with same contraints and object programatically. That class have size of 8kb. ...
more »

2017-02-20 08:02 (1) Answers

React native fbsdk login IOS white screen

i am having problem using official react-native-fbsdk package for facebook login, it works well in android but in IOS after the login finished or cancelling it redirects to blank page instead of going back to my app. What I have done : Linked reac...
more »

2017-02-20 05:02 (0) Answers

Objective-C cpu cache behavior

Apple provides some documentation about synchronizing variables and even order of execution. What I don't see is any documentation on CPU cache behavior. What guarantees and control does the Objective-C developer have to ensure cache coherence betwee...
more »

2017-02-20 02:02 (0) Answers

Spritekit scale full game to iPad

So I'm developing a game on Xcode using Spritekit, for the iPhone. And it looks all the same and great on all iPhone devices, by using the node.setScale() method. Now I want to make it Universal and runnable on the iPad as well. How do I do this easi...
more »

2017-02-19 23:02 (2) Answers

FB app invites not triggering push notifications

I have implemented app invites as per the tutorial here I have a button in my app that triggers the following code. - (IBAction)inviteFriends:(id)sender { FBSDKAppInviteContent *content =[[FBSDKA...
more »

2017-02-19 20:02 (0) Answers

Init a Metal texture with the type of 3D

Recently, I am playing with SceneKit, I found the colorGrading property. The doc say that The contents value for this material property must be a 3D color lookup table, or a 2D texture image that represents such a table arranged in a horizon...
more »

2017-02-19 14:02 (1) Answers

UIView method swizzling swift 3

I'm trying to implement method swizzling in swift 3 basing on answer How to implement method swizzling swift 3.0? Here's my code: // MARK: - Swizzling private let swizzling: (UIView.Type) -> () = { view in let originalSelector = #selector(v...
more »

2017-02-19 09:02 (1) Answers

Change the text layout in a UITextField

Below is an image of some UITextFields. Regarding the large one on the bottom, how do I get it to start text at the top left (not the middle), and how do I get them all to start a bit to the right. As you can see, they are awkwardly close to the le...
more »

2017-02-19 05:02 (4) Answers