URL wont open swift 3

@IBAction func download(_ sender: Any) { if let url = URL(string: "\(imgURL)") { UIApplication.shared.openURL(url as URL) } print(imgURL) } The url wont open if i press the button. The consol says the right url: https://scontent...
more »

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

Generic IBDesginables UIView extension

I would like to create generic extension for class to add some designables functionality to any UIView subclass and by this avoid adding functionality to all subclasses. So, would be nice to add extension for UIView which conforms to protocol SomePro...
more »

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

Can not inspect my debug build in Safari

I executed the next steps: 1) Changed my app scheme to debug in Archive mode. 2) I created an archive. 3) I uploaded it to the iTunes connect. 4) I made needed build available for testing and invited beta testers. 5) I downloaded an app from the...
more »

2017-06-22 15:06 (1) Answers

Display Section Header UICollectionReusableView

I was working on iOS application and I have several problem about using UICollectionView cell. This time, I want to ask about how to display the section header of UICollectionView (UICollectionReusableView) I already implement the function like bel...
more »

2017-06-22 11:06 (3) Answers

Push Notification stopped on Live iOS App

My iOS app is live on the App Store and around 100 users are using this app. I have also configured push notifications in it. Initially, Notifications ware working fine and everybody were getting the notifications But it stopped when I installed th...
more »

2017-06-22 10:06 (1) Answers

Google Analytics nil error xcode swift

func searchBarSearchButtonClicked(_ searchBar: UISearchBar) { let urlRequest = URLRequest(url: URL(string: "https://www.googleapis.com/youtube/v3/channels?part=id&forUsername=\(searchBar.text!.replacingOccurrences(of: " ", with: "%20"))&...
more »

2017-06-21 22:06 (1) Answers

Swift Set Array custom sort

I have Contact model and I want to sort by [firstLetter, fullName] into [section,row] for UITableView in this way "FAVORITES" at startIndex, "#" at endIndex and between them are sorted letters. For example: ["A", "C", "E", "#", "FAVORITES"] into ["FA...
more »

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

Stretch the last element in UIStackView

I have vertical UIStackView which has two horizontal UIStackViews, if bottom UIStackView has larger width than UIStackView on the top then UIStackView on the top will be stretched to the width of the bottom UIStackView. And now I have first element...
more »

2017-06-21 18:06 (1) Answers

Creating an unsigned .IPA with Xcode 8.3

We have an iPad application for a customer who requires us to provide them with an unsigned .IPA file, which they then sign with their own credentials and distribute to their enterprise users. Prior to Xcode 8.3, I've been able to create the unsigne...
more »

2017-06-21 16:06 (0) Answers

Is it possible to precompile xib/storyboard files?

We have a large monolithic app: 700 ObjC files, 300 Swift files and up to 100 xib and storyboard files. We are looking for any techniques that would help us to optimize the app build time. One idea is to precompile some of the stable xibs/storyboar...
more »

2017-06-21 11:06 (0) Answers

Backend API Security

I have a backend server which serves mobile apps both android and iOS. Now I have SSL installed on the server so all requests made are secure. Can you give me suggestions if I need to encrypt my sensitive info which is being sent to server as plain ...
more »

2017-06-21 11:06 (0) Answers

CocoaPods with Dynamic Frameworks

Assume the following setup: A Swift project with a main target that links two dynamic Cocoa Touch Framework targets. MainProject MainTarget FrameworkA FrameworkB Conditions: Framework A links CocoaPodM. Framework B links CocoaPodN. The test...
more »

2017-06-21 10:06 (0) Answers

(IOS) XCode - Lexical or Preprocessor Issue

I just finishing building a game on Unity 5.6 to work on IOS, however when I open it on XCode and build it onto my iPhone I get this error. I have looked around and couldn't find a fix and hopefully you guys could help me. So this is what I have do...
more »

2017-06-21 09:06 (0) Answers

How secure is Sinch SDK?

I have implemented sinch SDK in my iOS application and also have a URL callback to check with my backend if the request is from my existing users. But let's say a new user wants to signup to my app and I verify his mobile number, then only sign him ...
more »

2017-06-21 09:06 (0) Answers

Move from one text field to another

How can I make text field-1 move to another text field-2 by Swift when I write two numbers? When I write 22, I want to automatically move to another text field-2. I tried this but it doesn't work: func textField(textField: UITextField, shouldCha...
more »

2017-06-21 06:06 (4) Answers

x.jpg appears as a box in Xcode editor

Forgive me for my silly question! I'm new to iOS here's my stupid issue - When I try setting an image as, img.image = image.jpg the image.jpg appears as a box in the xcode editor. Why is that so? Is it good practice to do so? I'm using xcode 8....
more »

2017-06-21 05:06 (1) Answers

Open URL on table view cell click

I want to open a specific URL on a cell click. I am trying to do this using objects, but it doesn't work. The string 'url' gets (null). Code: //setting object [self.url2 addObject:@"http://google.nl"]; //method to select cell - (void)tableView:(U...
more »

2017-06-20 20:06 (1) Answers