Swift Touches not recognized in static table view

I have a table view with static cells. My second section has a header but no rows, under that section I have a label that when pressed should call sendEmail() function which will open the email app on their device. I've tried using a label, text v...
more »

2017-03-20 21:03 (1) Answers

iOS static-dynamic libraries size comparison

I recently converted one of my static libraries into a framework, because I use it in extensions and I wanted to reduce my app's size (which worked like a charm). I'm thinking about converting other static libraries into frameworks. But they are only...
more »

2017-03-20 12:03 (0) Answers

UITextView Hyperlink to Internal WebView

UITextView allows tappable attributedText based hyperlinks.The user interaction with the link can be intercepted by implementing the delegate method. textView:shouldInteractWithURL:in: which has two variations, for iOS 10 and one for iOS 9 as below. ...
more »

2017-03-19 22:03 (1) Answers

CoreData splitting sections by String

I am trying to make headers for my tableview that are separated by date, which is a string. I am using core data and the NSFetchResultsController. I am basically making an agenda which will separate events based on a string date. I cannot find anyw...
more »

2017-03-19 21:03 (2) Answers

Xcode does not find C++ static library

So I had some issues with this before but I deleted my old question and updated it to this one. Here it goes: I want to use a C++ Library in my iOS Swift project. With the help of this community I compiled my library as a static library (.a file). N...
more »

2017-03-19 13:03 (1) Answers

Switching function of UIButton

I have a UIButton and I want to case switch between functions of the button. The first case would be to print hello and the second case would be to print yes. And it will restart and keep going over and over again. I tried but I Keep failing. I tried...
more »

2017-03-18 23:03 (1) Answers

Import external nodes in SpriteKit using Swift

I'm working on a Breakout type game. I created the paddle in a different scene (PaddleScene.sks) so I could reference it across multiple levels. Not sure if that's how it's done yet, still a newbie. I added the paddle inside GameScene.sks through SK...
more »

2017-03-18 15:03 (2) Answers

Multiple labels and segment views in Auto Layout

i'm having some issues with auto layout. I'm making an exercise app and i've built this display to configure the users units settings but i'm struggling with laying out the constraints. Here's how i want it to look... But here's what i get when i ...
more »

2017-03-18 15:03 (1) Answers

Thread 1 signal SIGABRT Error in Xcode [Swift]

When I want to make an UITableView inside of an ViewController. I have made all exactly as in a tutorial in which it worked, but I got this Error "Thread one signal SIGABRT" on class AppDelegate: UIResponder, UIApplicationDelegate { in AppDelegate.s...
more »

2017-03-18 15:03 (1) Answers

iOS - Error with constraints in storyboard

I would like to place the button through the constraints is the same for all devices. As you can see in the first picture (iPhone 6) the button is set properly, while the iPad Pro button is too low. How can I fix? Open pic ...
more »

2017-03-18 15:03 (0) Answers

Xib and Storyboard

I have two files xib and storyboard. In the xib file there is a custom menu for working with photos (brightness, saturation, etc.). Variable containing a photo is in ViewController. I created an @IBAction for each button in xib. How to transfer a pho...
more »

2017-03-18 14:03 (1) Answers

How can I replace my .xib file with pure Swift 3?

I am making a macOS Cocoa application which only runs in the menu bar. When I initially created the project, Xcode gave me a file called MainMenu.xib. This MainMenu.xib file does not appear to contain anything relevant to my menu bar application, so ...
more »

2017-03-18 14:03 (2) Answers

Calling View Controller Method From TabBarClass

I have a timer running in a tabbar class that saves data to the cloud each time it is called. Then i want it to call a method on the currently select view controller to tell the user what was saved. I am doing this with the following. if (self.s...
more »

2017-03-18 12:03 (2) Answers

How to create IBDesignable custom view?

I am still improving my programing skills in iOS(Swift). Today I am thinking about creating a UIView subclasses in a good way. I want to create custom view which is: @IBDesignable - I want to see a render of my view in storyboard/xib; Creatable fro...
more »

2017-03-17 15:03 (2) Answers

Lexical or preprocessor issue in Xcode 8.0

I'am using react native: 0.41.2, react: 15.4.2 and cocoapods for firebase(https://github.com/evollu/react-native-fcm). I have an issue while building the code. 'React/RCTEventEmitter.h', 'React/RCTBridgeModule.h', 'React/RCTViewManager.h', 'React/RCT...
more »

2017-03-17 12:03 (1) Answers