Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
int squaringNumber(int num) {
int square = num * num;
return square;
}
void squareNumber(int *numberReference) {
int num = *numberReference;
int square = num * num;

Apple Developer Program

Sometime in week 8 you will be uploading your final project to TestFlight so you can share it with other people.

During development of you iOS app, you want to try and get feedback from users as early and frequently as possible. To test your app on your iPhone, you just plug your phone into your Mac and run the Xcode project. But how can you run your app on other people's devices for testing? What if you're testers are spread out across the world?

TestFlight Beta Testing is an Apple product that makes it easy to invite users to test your iOS apps so you can get feedback and make changes before you release it to the App Store.

TestFlight Beta Testing makes it easy to invite users to test your iOS, watchOS, and tvOS apps before you release them on the App Store. You can invite up to 2,000 testers using just their email address. -- https://developer.apple.com/testflight/

<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsInMedia</key><true/>
</dict>
var thermometerStruct1 = ThermometerStruct()
thermometerStruct1.register(temperature: 56.0)
var thermometerStruct2 = thermometerStruct1
thermometerStruct2.register(temperature: 42.0)

var thermometerObject1 = ThermometerClass()
thermometerObject1.register(temperature: 56.0)
var thermometerObject2 = thermometerObject1
thermometerObject2.register(temperature: 42.0)

#iOS Interview Questions (Thermometer)

Here’s a model of a thermometer as a class and a struct:

public class ThermometerClass {
    private(set) var temperature: Double = 0.0
    public func register(temperature: Double) {
        self.temperature = temperature
    }
// Get the url to your video
NSURL *videoURL = [[NSBundle mainBundle] URLForResource:@"keyboard_cat" withExtension:@"mp4"];
// Create a new player view controller with a player object
AVPlayer *player = [AVPlayer playerWithURL:videoURL];
AVPlayerViewController *videoController = [[AVPlayerViewController alloc] init];
videoController.player = player;
// Hide the playback controls
videoController.showsPlaybackControls = NO;
@meech-ward
meech-ward / XIBView.m
Last active November 19, 2015 18:01
Add a UIView with a XIB
@interface XIBView()
/// The main view in the xib file.
@property (strong, nonatomic) IBOutlet UIView *contianerView;
@end
@implementation XIBView
#pragma mark - SetUp