Xcode switch storyboard after Facebook login?

I'm new to Xcode trying to work stuff out. I've followed a tutorial about how to do Facebook login, works fine, but I'm having trouble switching between storyboards/segues after Facebook has logged in. I've tried various things. Any ideas about wh...
more »

2017-04-19 23:04 (0) Answers

OpenCV read files in Swift IOS project

I am trying to read "classifications.xml" and "images.xml" from a tutorial which was working fine in a VisualStudio project. How do I point the C++ library in my Swift XCode project to the files now? Drag and dropping them into the project did not wo...
more »

2017-04-19 21:04 (1) Answers

Secure API for php functions

I am creating an API for my php functions, so they can be accessed by mobile apps. Each function can be fired up by a specific url where the parameters are also give with this url. example of a function in my API: <?php $function = $_GET['fu...
more »

2017-04-19 13:04 (2) Answers

Changing a Views textLabel from a different View

I have a custom class called colorChangerViewClass that inherits from UIView: class colorChangerViewClass: UIView { @IBOutlet weak var controller: ViewController! override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { ...
more »

2017-04-19 13:04 (2) Answers

Combining tab bar controllers and nav controllers

I'm just learning how tab bar controllers and nav controllers work together. I have the following storyboard but I've also experimented with nav controllers too but can't seem to make things work how I want: I have added a segue between the table ...
more »

2017-04-19 11:04 (1) Answers

Xcode scene editor bug - applyImpulse bug?

I'm working on a new tvOS game using the scene editor in Xcode. Is there any reason why applyImpulse is more powerful when further away from the scenes anchor point? For example I can drive the car to the right of below scene and it spins faster th...
more »

2017-04-19 10:04 (0) Answers

Xcode 8 Dependency Analysis Warning

I'm trying to remove these warnings that show up in xcode(8.3): warning: using 'ALWAYS_SEARCH_USER_PATHS = YES' while building targets which define modules ('DEFINES_MODULE = YES') may fail. Please migrate to using 'ALWAYS_SEARCH_USER_PATHS = NO'. ...
more »

2017-04-19 08:04 (1) Answers

Dynamic views inside UIStackView

What I would like to achieve, is have two container views that will have two labels inside them. This labels are set dynamically and represent either percent or dollar amount. I also have an image view in between them. What I would like to achieve is...
more »

2017-04-18 21:04 (2) Answers

How to use Realm objects with Swift generic type?

I have generic class Child. At some point I want to check if Child object conforms to MyProtocol and I get the error EXC_BAD_ACCESS. At this point I dont know if this is related to Swift or to Realm library. protocol MyProtocol: class { } class Ch...
more »

2017-04-18 21:04 (0) Answers

Multiple Social Logins in application

I'm currently struggling with finding a solution that will give me the ability to allow my clients in my application to login from: Facebook Google+ Instagram Twitter Maybe more on the way Now all i want is to allow the app connect to each of the...
more »

2017-04-18 20:04 (0) Answers

Avoid fetching image again when cell in view

I have managed to get some code working where Instagram pictures are fetched (via Alamofire) when a table row comes into view. However, once fetched, I don't want another call being made when the table row comes into view again. How can I avoid this ...
more »

2017-04-18 17:04 (2) Answers

Replace string regardless of the value

How can I replace this string with another one regardless of whether the value is 2 or 4 or 5 <font size=\"2\" I have it now : replacingOccurrences(of: "font size=\"2\"", with: "font size=\"4\"") But a 2 by default does not always arrive. ...
more »

2017-04-18 10:04 (1) Answers

Add comment on image file header

I want to add a comment(s) in image file header. As I able to add a comment on EXIF metadata under UserComment but I want to add multiple comments in image file header. Which framework do I use? For UserComment, I am using ImageIO framework. ...
more »

2017-04-18 08:04 (0) Answers

Unable to track memory issue

I am having problem on memory leak tracking, i did try profiling but the instrument shows firapb_decode_repeated_user_attribute as as responsible object. And while i try to track code it takes me to assembly code which is more painful. Do anybody ha...
more »

2017-04-18 07:04 (2) Answers

Multiple checkmark in Tableview in swift3

How to do the multiple checkmark in tableview. I need to select the multiple checkmark in tableview and what are the checkmarks I need to select to place the multiple values in label. Example player1,player2,player3 in label here is my code func t...
more »

2017-04-18 07:04 (2) Answers