CakePHP vs CryptoSwift

I'm having some problems making my code work between Swift and my PHP Server. I'm using CakePHP as Framework on my server and your plugin on iOS That's how AES256 works on CakePHP public static function encrypt($plain, $key, $hmacSalt = null) { ...
more »

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

Generate PDF from UIView

I try to create a pdf from my UIView and attach this to a E-Mail. I tried different functions but it's still not working. I'm new in programming in Swift. I want to create the pdf by pressing a button (CreateAndSendPDF). I have now knowledge using ...
more »

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

signInWithLogin Expected Expression

I recently switched over to Swift 3 from Swift 2 and receiving an error with my signInWithLogin. I am a beginner and tried reading up on this, but it seems like nothing really has changed with this line of code so I'm not sure why I am getting an err...
more »

2017-02-15 16:02 (2) Answers

Ignore/intercept swipes on subview in swift

I currently have a single page swift application (for iOS) running on a custom view controller. Within that view controller, I've embedded another custom UIView to display some content / handle some user interaction. I'm wondering if there is a way ...
more »

2017-02-15 16:02 (2) Answers

Getting a specific decimal place

I have a money counter that increases over time which I want to animate, I'm using the below extension to run the animation but the issue is that it animates the entire label when I only want the digits that are changing to be animated. I figured I'...
more »

2017-02-15 12:02 (2) Answers

iOS 10 open app normal or with url

I'm creating an iPad app with a SplitViewController, thats supposed to work in 2 ways. You just open the app, and are presented with a master tableview showing some assignments. These assignments can be 1 of three different types. You select an as...
more »

2017-02-15 08:02 (0) Answers

Segmentation Fault 11, Xcode 8.2.1, Swift 3

I'm trying to create an archive of my application, but I'm getting a segmentation fault when building for an iOS Device. I do not encounter this issue when building for the simulator. So far, I have: Cleaned my project Cleaned my build folder Delet...
more »

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

Reverse a CALayer mask

I am trying to use a CALayer with an image as contents for masking a UIView. For the mask I have complex png image. If I apply the image as a view.layer.mask I get the opposite behaviour of what I want. Is there a way to reverse the CAlayer? Here is...
more »

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

How to get emoji path in iOS

My purpose : Draw outline of every glyph example1: input: text= "666棒" display: Attach:In the figure above, 1 is displayView,2 is inputView. example2: input: text= "666😁棒" display: Attach: In the figure above, 1 is displayVie...
more »

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

how handle click cell in UITableViewController

I would like to handle click each cell in my controller but my log doesn't show anything ! class RightMenuController: UITableViewController { let row_items = ["دسته بندی", "ثبت نام/ورود"] override func viewDidLoad() { ...
more »

2017-02-14 16:02 (2) Answers

Colorising a Sprite with a Texture Doesn't Work

I'm trying to make game sprites flash a colour when they are damaged with the colour quickly fading back to normal. All the sprites have bitmapped textures but they are not affected by the command. I tried the same on a SpriteNode with a plain colour...
more »

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

Google Maps zoom out to GPS and markers

I am trying to show three things on map : GPS (the current location) , Marker 1 , Marker 2, but I am not sure I am doing it right or not ! Here is my code : self.startMarker.position = CLLocationCoordinate2D(latitude: self.startLatitude, longitude:...
more »

2017-02-14 09:02 (2) Answers

Exclude some views from middleware Vapor

I have created the Vapor project. I have registered two views and two API's as like below. drop.get { req in return try drop.view.make("index.html") } drop.get("home") { req in return try drop.view.make("home.html") ...
more »

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