Galleries/Portfolios

You can create galleries and portfolios using the powerful [posts] shortcode that comes with buddy. Below are a few examples of what you can do with the shortcode, but it is capable of doing much more. For all the shortcode options click here.

Gallery Example 1

How to detect iPhone X through code

I was just playing around with the iPhone X simula... »

Override question?

I am trying to create an app similar to the Guided... »

Can only pass data between 2 of 3 View Controllers

Hi,   I´m making a simple orderplacement app. This... »

Swift framework wrapping a static library

I now spent 2 days trying to create a Swift framew... »

Differentiate between Homescreen click and Lock Screen click

Hey guys,   I have a bluetooth app that connects t... »

[posts name="gal1" cols="5" per_page="5" excerpt_length="50" meta="false" title_size="12" image_wrap="false"]

Gallery Example 2

How to detect iPhone X through code

I was just playing around with the iPhone X simulator in Xcode, and I realized one of my apps has a view bug. I have a button placed with code (at the bottom of the screen in the middle) that is overlapping the bar that you swipe up to get to the home screen. Is there a way to detect, through code, if the device is an iPhone X, and an iPhone X only, so I can write code to counteract the bug? Maybe by detecting the precise screen width and height, and if so, what are those numbers? Thanks in advance. Any help is appreciated. Powered by WPeMatico »

Override question?

I am trying to create an app similar to the Guided Project: List in “App Development with Swift” with one change.  I would like an opening view controller that segues to the tableview.  I have that set up but when I get to the point in the lesson where it overrides the function viewDidLoad I get an “override can only be specified on class members” error.  That override is already in the viewcontroller.swift file.  Should I delete or change that override in the view controller.swift file?   I hope this is not too vague.  If you need more information let me know.  I am to... »

Can only pass data between 2 of 3 View Controllers

Hi,   I´m making a simple orderplacement app. This app uses 3 View Controllers: Menu1, Menu2 and Checkout. (Menu2 was recently added, and is the source of the problem) I pass data between Menu VC an Checkout with a Swift file called orderModel. This has been working perfectly for a long time now, but when I added a new VC, Menu2, I got problems. Menu2 won´t pass data to Checkout VC. I have done the 2 menuVC´s identical. Just with different variables.   Menu1: class menu1ViewController: UIViewController { var myOrder = OrderModel() var tomatoes = "Tomatoes" @IBAction func item1(_ sender: UIButt... »

[posts name="gal2" per_page="3" excerpt_length="600" image_width="450" image_height="200"]

Gallery Example 3

How to detect iPhone X through code

I was just playing around with the iPhone X simulator in Xcode, and I realized one of my apps has a view bug. I have a button placed with code (at the bottom of the screen in the middle) that is overl...

Override question?

I am trying to create an app similar to the Guided Project: List in “App Development with Swift” with one change.  I would like an opening view controller that segues to the tableview.  I ...

Can only pass data between 2 of 3 View Controllers

Hi,   I´m making a simple orderplacement app. This app uses 3 View Controllers: Menu1, Menu2 and Checkout. (Menu2 was recently added, and is the source of the problem) I pass data between Menu VC an C...

Swift framework wrapping a static library

I now spent 2 days trying to create a Swift framework that includes a static (Objective-C) library, so I guess it is time to ask for help here… My problem: I have a static library created with O...

Differentiate between Homescreen click and Lock Screen click

Hey guys,   I have a bluetooth app that connects to a device. What I want to achieve is this: when a user switches apps or goes to the homescreen, I want to disconnect from the bluetooth device but wh...

exclamation point after try – try!

What does it mean when I see an exclamation point after the “try” statement like the following code?  Is it unwrapping the result of the statement?                               do {      ...

[posts name="gal3" cols="3" per_page="6" excerpt_length="200" read_more="false" image_width="200" image_height="200" meta="false" pagination="false" image_wrap="false"]

Gallery Example 4

How to detect iPhone X through code

I was just playing around with the iPhone X simulator in Xco... »

Override question?

I am trying to create an app similar to the Guided Project: ... »

Can only pass data between 2 of 3 View Controllers

Hi,   I´m making a simple orderplacement app. This app uses ... »

Swift framework wrapping a static library

I now spent 2 days trying to create a Swift framework that i... »

Differentiate between Homescreen click and Lock Screen click

Hey guys,   I have a bluetooth app that connects to a device... »

exclamation point after try – try!

What does it mean when I see an exclamation point after the ... »

[posts name="gal1" cols="3" per_page="6" excerpt_length="60" meta="false" title_size="12" title_font="Helvetica, Arial" image_width="50" image_height="50" image_wrap="true" spacing="spacing-small" pagination="false"]

Skip to toolbar