Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Mark Price
    @spentak
    JPROFFICIAL
    @JPROFFICIAL
    Greatly appreciated.
    mmaners
    @mmaners
    hi guys. I have a view controller that I placed a table view onto. I have a second view controller. I have tried to drag a segue from the table view on the first view controller to the second view controller... seems I can not do that.... so how can I create a segues from the table view to a second view controler
    mmaners
    @mmaners
    I may have found a solution on StackOverFlow.... thanks
    oldmill1
    @oldmill1
    Just started this course today... let's see where it goes!
    Patrick
    @ctrlaltpat
    Same
    Mark Price
    @spentak
    Welcome @oldmill1 @ArbieDev
    @ctrlaltpat
    justSomeDeveloperDoingThingsInLife
    @justSomeDeveloperDoingThingsInLife
    Just started too :)
    Mark Price
    @spentak
    Welcome @justSomeDeveloperDoingThingsInLife
    love the name
    Sketchy Swift
    @HardcoreIOS
    This message was deleted
    This message was deleted
    justSomeDeveloperDoingThingsInLife
    @justSomeDeveloperDoingThingsInLife
    Hey Im on lecture 24, when you say half width are you talking about the horizontal length or vertical length?
    justSomeDeveloperDoingThingsInLife
    @justSomeDeveloperDoingThingsInLife
    isnt length the longest side?
    justSomeDeveloperDoingThingsInLife
    @justSomeDeveloperDoingThingsInLife
    sorry, you can ignore that question, I figured it out!
    justSomeDeveloperDoingThingsInLife
    @justSomeDeveloperDoingThingsInLife
    In lecture 24, when you are setting the widths and using the multiplier, why dont you use 0.5 right away instead of reversing and then using 2?
    is it because of the constant direction?
    Mark Price
    @spentak
    You should experiment with 0.5
    Karthik Yelchuru
    @buildAI
    hi!
    Mark Price
    @spentak
    Welcome @buildAI
    Karthik Yelchuru
    @buildAI
    hey thanks have been exploring iOS looking forward for perfection
    Mark Price
    @spentak
    Lots of work ahead of you!
    Leon Wang
    @leonw007
    @spentak Have you tried the HTTP connection in xcode 7.1 ? https://forums.developer.apple.com/thread/23799 I'm facing the same issue.
    neelusb
    @neelusb
    Hello All,
    I just wanted to introduce myself. I am 13 years old and have done quite a bit of programming before, namely HTML, CSS, JavaScript, jQuery, Python, and C/C++. I have an iPhone and a MacBook Pro, but don't know much Swift and this course was recommended by my teacher. I don't planning on selling apps anytime soon, but took this course to learn Xcode/Swift and possibly make and publish free apps.
    Mark Price
    @spentak
    Welcome! Glad to have you here @neelusb
    Doug Trance
    @dtrance2k6
    Hello everyone, just got this course on Friday and have been learning alot, I've messed with swift before in the past, but I'm glad I picked up this course already! Just started the auto layout goodness!
    Mark Price
    @spentak
    @dtrance2k6 awesome!
    Jay Hamilton
    @jaydaro
    devslopes for life!
    Mark Price
    @spentak
    haha ill make a shirt with that phrase
    Jay Hamilton
    @jaydaro
    Screen Shot 2015-11-08 at 8.33.46 PM.png
    Mark Price
    @spentak
    lol
    Aizaz Khaja
    @aizkhaj
    hey, I was just going through the calculator app part 1 vid, and got to the part where i stacked all rows of buttons…….and then this happened:
    Screen Shot 2015-11-08 at 9.32.59 PM.png
    it all disappeared :/
    (calc has power of invisibility)
    __TaYmuR__
    @telmetwally
    I'm having trouble with my firebase app the postcell doesn't update it shows blank screen even though I'm sure i did everything right
    Leonardo Amigoni
    @amigoni

    Hi Guys looking for some help on an error that I am getting on the Showcase App the one in section 9. Here is the error.

    2015-11-09 16:10:01.032 showcase[6309:265224] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSCache 0x7a634450> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key https://s-media-cache-ak0.pinimg.com/736x/42/23/97/42239797be9792b4b0dc6a4d4e05cfd5.jpg.'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x00633a94 __exceptionPreprocess + 180
        1   libobjc.A.dylib                     0x02439e02 objc_exception_throw + 50
        2   CoreFoundation                      0x006336b1 -[NSException raise] + 17
        3   Foundation                          0x00c8987c -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
        4   Foundation                          0x00be3e4a _NSSetUsingKeyValueSetter + 115
        5   Foundation                          0x00be3dcf -[NSObject(NSKeyValueCoding) setValue:forKey:] + 295
        6   showcase                            0x000ad28c _TFFC8showcase8PostCell13configureCellFS0_FTCS_4Post5imageGSqCSo7UIImage__T_U_FTGSqCSo12NSURLRequest_GSqCSo17NSHTTPURLResponse_GSqCSo6NSData_GSqCSo7NSError__T_ + 1644
        7   showcase                            0x000abce7 _TPA__TFFC8showcase8PostCell13configureCellFS0_FTCS_4Post5imageGSqCSo7UIImage__T_U_FTGSqCSo12NSURLRequest_GSqCSo17NSHTTPURLResponse_GSqCSo6NSData_GSqCSo7NSError__T_ + 103
        8   Alamofire                           0x00278ff5 _TFFFC9Alamofire7Request8responseFS0_FT5queueGSqPSo17OS_dispatch_queue__17completionHandlerFTGSqCSo12NSURLRequest_GSqCSo17NSHTTPURLResponse_GSqCSo6NSData_GSqCSo7NSError__T__DS0_U_FT_T_U_FT_T_ + 261
        9   Alamofire                           0x00278c47 _TPA__TFFFC9Alamofire7Request8responseFS0_FT5queueGSqPSo17OS_dispatch_queue__17completionHandlerFTGSqCSo12NSURLRequest_GSqCSo17NSHTTPURLResponse_GSqCSo6NSData_GSqCSo7NSError__T__DS0_U_FT_T_U_FT_T_ + 87
        10  Alamofire                           0x0023bf38 _TTRXFo__dT__XFdCb__dT__ + 40
        11  libdispatch.dylib                   0x03b5f3ff _dispatch_call_block_and_release + 15
        12  libdispatch.dylib                   0x03b829cd _dispatch_client_callout + 14
        13  libdispatch.dylib                   0x03b68018 _dispatch_main_queue_callback_4CF + 910
        14  CoreFoundation                      0x0058570e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14
        15  CoreFoundation                      0x00543454 __CFRunLoopRun + 2356
        16  CoreFoundation                      0x00542866 CFRunLoopRunSpecific + 470
        17  CoreFoundation                      0x0054267b CFRunLoopRunInMode + 123
        18  GraphicsServices                    0x07259664 GSEventRunModal + 192
        19  GraphicsServices                    0x072594a1 GSEventRun + 104
        20  UIKit                               0x01018cc1 UIApplicationMain + 160
        21  showcase                            0x000a77cc main + 140
        22  libdyld.dylib                       0x03baca21 start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb)

    Here is the code. I don't understand why it's crashing. the Image seems to be an image in memory and so does the string. Any clues?

    func configureCell(post: Post, image: UIImage?){
            self.post = post
            self.descriptionText.text = post.postDescription
            self.likesLabel.text = "\(post.likes)"
    
            if post.imageUrl != nil {
                if image != nil {
                    self.showcaseImage.image = image
                    self.showcaseImage.hidden = false
                } else {
                    request = Alamofire.request(.GET, post.imageUrl!).validate(contentType: ["image/*"]).response(completionHandler: { request, response, data, err in
    
                        if err == nil {
                            //Change to if let
                            let image1 = UIImage(data: data!)!
                            self.showcaseImage.image = image1
                            self.showcaseImage.hidden = false
                            FeedVC.imageCache.setValue(image1, forKey: self.post.imageUrl!)
                        }
                    })
                }
    
            } else {
                self.showcaseImage.hidden = true
            }
        }
    Leonardo Amigoni
    @amigoni

    LOL found the solution again. Should have been

    setObject

    not

    setValue
    AxlFlame
    @AxlFlame

    Hi, @spentak and chat!

    So, heres what Im trying to do:

    I`m trying to create a table that shows some flight data. For that I create the table via storyboard and the idea is that each cell of the table represents one trip (i.e all the flights needed to fly from city A to city B). The problem is that one trip can have many flights and I need a table configuration that I can create multiple flight lines inside each trip cell.

    Each flight line would display some info: Flight number, route, departure time and duration.

    Is it possible to create something like that? Say, a table with n sub-cells within a cell programmatically? Or is there a better solution?

    My issue with this is that I need a specific layout for the flight lines (so it fits properly inside the table) and I dont know if theres a way to inflate the layout on the code or create an layout file and instantiate a cell with it, like in Android.

    Jack Davis
    @jackd942
    Wouldn’t that be where you would set numberOfSectionsInTableView to something greater than 1? i.e. 1 section for each trip and then numberOfRowsInSection would return the number of flights in each trip...
    you could use an array of arrays
    Mark Price
    @spentak
    @AxlFlame I would definitely make sure to use Object Oriented Programming. Have a Trip class and a Flight class. The Trip class would hold an array of Flights
    Jack Davis
    @jackd942
    Wouldn’t you need an array of trip objects that held arrays of flight objects @spentak ?
    Mark Price
    @spentak

    so if i understand the problem correctly Axl wants a tableview that has one cell for each trip. but in that cell it shows multiple times/flights. So If I really wanted to show all the flights in a single cell, I would have one cell for each trip, but then programmatically I would add a UILabel for each flight in side that cell, then expand the cell height accordingly. Or a better way is only show the trip in each cell, then when you tap on it another view pops up with all the flights.

    So your View Controller would hold an array of Trips - and the Trip class has a property var flights: [Flight]!

    So yes you would have an array of trip objects, each trip object holding an array of flight objects
    Jack Davis
    @jackd942
    ok
    Good explanation…so numberOfSectionsInTableView and numberOfRowsInSection really wouldn’t come into play in that instance
    slupton89
    @slupton89
    @spentak I'm trying to sign up for the free art pack that you emailed about but I'm having a problem. When I click the signup page on facebook there is nothing to fill in, the page is blank.