iphone app does not display icon on ipad

I'm building an app for iPhone devices ("devices" set to "iPhone" in "general" tab of mon only target). When run on an iPad simulator (or a real iPad) I do not have the correct icon (the one displayed correctly on an iphone). Note that my AppIcon i...
more »

2017-02-16 22:02 (1) Answers

UICollectionView removing an item issue

I have created a CollectionView where displays the photos from the camera roll, just like the default photo app of iPhone (one cell per photo) I need to implement a delete functionality, so I successfully created a delete action. The problem is when...
more »

2017-02-15 22: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

d2i_ECParameters Returns Null

I want to create a EC_Key from NSData, via OpenSSL. So I write the following: - (void)setPrivateKey:(NSData *)privateKey { const unsigned char *bits = (unsigned char *) [privateKey bytes]; eckey = EC_KEY_new_by_curve_name(NID_X9_62_prime...
more »

2017-02-15 15:02 (1) 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

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 (1) 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

Xcode 8.2 - Autolayout: xib run on different sizes

I get a problem using xib's and Autolayout on Xcode 8.2. I have bind a Xib for each viewController which are then added on a storyboard. My problem is to test different device sizes on my app. Everything is ok when I select the right "View as: #dev...
more »

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

UIBezierPath - Add rounded corner

I am using a UIBezierPath to draw a curved line. The curve works however, I am unable to curve the edges of the line. If you look at the top/bottom end of the curve, you can see that the edges are flattened out, thats not what I want. Is there a w...
more »

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

Can I use kindle-highlights gem with RubyMotion

I'm trying to use kindle-highlights gem in RubyMotion. I found motion-bundler, that should help me bring these two together. According to FAQ from motion-bundler, not every gem will work. Can I use every random Ruby gem available? Unfortuna...
more »

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

What is Text-based API option in Xcode

Recently, I observed section named Text-based API in Xcode build settings. In Xcode 7.X it's under Linking section. But now with Xcode 8.X, it's separated out as another section in Xcode build settings. I'm interested to know what exactly it will do?...
more »

2017-02-14 10: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