These are chat archives for devslopes/swiftios9

10th
Nov 2015
Chris Aubuchon
@aubuchcl
Nov 10 2015 00:17 UTC
@spentak nice setup. First course Ive seen with an active(live) community and a creator who actually cares enough to get online. Pretty revolutionary.
Mark Price
@spentak
Nov 10 2015 00:18 UTC
Thanks!
Chris Aubuchon
@aubuchcl
Nov 10 2015 00:34 UTC
The video mentions downloading xcode 7 beta 4 but current download is either 7.1.1 or 7.2 beta 2. Does anyone know which is best for content in this course
Mark Price
@spentak
Nov 10 2015 00:35 UTC
Get the one on the app store
jas0nlhy
@jas0nlhy
Nov 10 2015 03:34 UTC
Is there a way to upload my own images here?
Mark Price
@spentak
Nov 10 2015 04:10 UTC
drag and drop
Volkan Gürol
@volkangurol
Nov 10 2015 07:33 UTC
hi i haven't received anything about the art pack either : )
edwardbattistini
@edwardbattistini
Nov 10 2015 10:42 UTC
Hello
I have started the ios9swift course
and already have issues :(
with the first app
when I build the app it shoes class AppDelegate...

— //
// AppDelegate.swift
// superCool
//
// Created by Edward Battistini on 10/11/2015.
// Copyright © 2015 Edbdesign. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
    // Override point for customization after application launch.
    return true
}

func applicationWillResignActive(application: UIApplication) {
    // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
    // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(application: UIApplication) {
    // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
    // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(application: UIApplication) {
    // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(application: UIApplication) {
    // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(application: UIApplication) {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

}

edwardbattistini
@edwardbattistini
Nov 10 2015 10:47 UTC
i have copied the tutorial… but doesnt work

— import UIKit

class ViewController: UIViewController {

@IBOutlet weak var logo: UIImageView!
@IBOutlet weak var bg: UIImageView!
@IBOutlet weak var makeMeCoolbutton: UIButton!

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.
}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}


@IBAction func MakemeCoolAction(sender: AnyObject) {

    logo.hidden = false
    bg.hidden = false
    makeMeCoolbutton.hidden = true
}

}---

–––
Tarek
@TarekSalama
Nov 10 2015 11:35 UTC
@spentak Yo, I’m working on the “My Favorite Place” app. I have a small issue with button sizes. Basically if I stack the About and Photos buttons together, the buttons get resized to fit the text only. It looks ugly. I want the buttons to be a bit wider. So I tried creating a class for them and I added this line:
self.frame = CGRect(x: 0, y: 0, width: 150, height: 50)
but it didn’t work. Any ideas?
Tarek
@TarekSalama
Nov 10 2015 11:45 UTC
@spentak This is what I’m currently getting. I want to resize the buttons. I didn’t give them a fixed width and height in the constraints btw. Stacking them won’t let me give them a custom size.
Screenshot 2015-11-10 13.40.55.png
AxlFlame
@AxlFlame
Nov 10 2015 13:10 UTC

@spentak , that is exactly what I want! But how would I go to add the UILabels and expand the trip cell height programmatically? I think I understand the OOP part, but I`m really having trouble figuring out the layout part.

And still on the subject, if I were to use the other approach of showing the trip in each cell and the flights in another view, would I use the numberOfSectionsinTableView that @jackd942 mentioned?

David Copley
@davidcopley
Nov 10 2015 13:32 UTC
@edwardbattistini without seeing the error messages it is difficult or impossible to find the problem. Even with error messages it is difficult enough. Screen shot the error(command shift 4) or upload your app to github so we can check :)
edwardbattistini
@edwardbattistini
Nov 10 2015 13:33 UTC
thanks @dfordavid
I have redone the app again from scratch and it worked
Screen Shot 2015-11-10 at 13.33.53.png
@dfordavid
David Copley
@davidcopley
Nov 10 2015 13:40 UTC
@edwardbattistini that error message is usually insufficient to debug.
edwardbattistini
@edwardbattistini
Nov 10 2015 13:40 UTC
Oh ok
i am trashing it anyway
it doesn work
David Copley
@davidcopley
Nov 10 2015 13:40 UTC
Screen Shot 2015-11-11 at 12.39.09 AM.png
edwardbattistini
@edwardbattistini
Nov 10 2015 13:40 UTC
thanks for your answer
David Copley
@davidcopley
Nov 10 2015 13:40 UTC
inside the right box, scroll to the top
Screen Shot 2015-11-11 at 12.39.16 AM.png
edwardbattistini
@edwardbattistini
Nov 10 2015 13:41 UTC
Screen Shot 2015-11-10 at 13.40.59.png
David Copley
@davidcopley
Nov 10 2015 13:42 UTC
I went to google and searched for "this class is not key value coding-compliant for the key"
@edwardbattistini here are answers from stackoverflow:
@edwardbattistini so im guessing "You may have a bad connection in your xib." relates to you :)
edwardbattistini
@edwardbattistini
Nov 10 2015 13:44 UTC
ok
thank you so much
for your input
got my bomb app running ^^
Simulator Screen Shot 10 Nov 2015, 11.28.09.png

newbie

Wayne
@Wrenbjor
Nov 10 2015 13:48 UTC
@spentak I just started the Firebase/Facebook app and the FB page is completely different then what's in your video, I figured most of the things out but all of the FB code is in Objective-c, it's telling me to modify my Appdelagate.m file.... and when I do the import for FBSDKCoreKit and try to build I get No such module 'FBSDKCoreKit', should I start from scratch? Has anyone else had issues with this tutorial?
Mark Price
@spentak
Nov 10 2015 14:37 UTC
@Wrenbjor the docs have a swift option
Screen Shot 2015-11-10 at 7.37.26 AM.png
@edwardbattistini awesome work! and welcome
Mark Price
@spentak
Nov 10 2015 15:12 UTC
@TarekSalama concerning your buttons - you can set a fixed width and height constraint and it will be the size you want
Tarek
@TarekSalama
Nov 10 2015 15:23 UTC
@spentak Thanks man. Wow.. That was easier than I thought lol.