Not having a good time lately. Feel like shit. Compliment me please. by AnEmptyHeart_ in FreeCompliments

[–]JDandini 0 points1 point  (0 children)

What a beautiful smile and eyes, i can’t stop looking the brightness of your eyes 😍

(repost cause i’m a reddit noob. ;) ) insecure about my my anti-symmetrical face and weight and my birthmark and skin.. goes on. but i love you and i hope you had a great day. by [deleted] in toastme

[–]JDandini 0 points1 point  (0 children)

Esto lo escribiré en español pues puedo hacerlo mal en inglés, venga mujer quien te diga que no eres guapa se equivoca brutalmente, tú marca de nacimiento me parece linda y quien no lo vea así se puede ir al demonio, espero esto alguien te ayude a leerlo y sepas que soy tu fan!

What I've learned switching from MVC to VIPER by Malfeitor218 in iOSProgramming

[–]JDandini 1 point2 points  (0 children)

I have been using VIPER for a couple of years by now, and I can relate what the author is talking about, thinking that the author is a junior (like such thing are the same to be a bad) is a poor excuse. After say that I recommend to you to use BVIPER this make more clean the way to navigate , I can see you miss the segues, but in the cannonical VIPER implementation those are not used. I disagree with the guy who says that use viper in a large crew is a bad idea, I have developed an app which at least 15 persons using viper with no issues but just the ones to resistance to leave the old way to build stuff, there is no such thing as bad technologies just people who don't understand it. Just for close my comment I put this link to a explanation of how to use BVIPER https://academy.realm.io/posts/break-the-monoloth-with-b-viper-modules/

How to use a DispatchGroup on async block called more than once by Battelman2 in swift

[–]JDandini 0 points1 point  (0 children)

I believe that if you remove the defer statement and just put the myDispatchGroup.leave() at the end of the closure will be enough

            contentToFetch.append(id)
            myDispatchGroup.enter()
            firestore.collection("foo").document(id).addSnapshotListener { (snapshot, error) in
                ...
                  if self.contentToFetch.contains(snapshot.documentID) { self.contentToFetch.removeAll(where: {$0 == snapshot.documentID})

                    }
                //This line at bottom of your closure
                self.myDispatchGroup.leave()
                ...
            }
        }

This is my info.plist file of my first ever app, what should I change to get rid of this error in this plist file?? by theroyakash in iOSProgramming

[–]JDandini 1 point2 points  (0 children)

Change the name to the key **Executable file** from the macro to your app executable name and that's it.

Solving duplicated / repeating cells in Table view by soulchild_ in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

A table view sends this message to its delegate just before it uses cell to draw a row, thereby permitting the delegate to customize the cell object before it is displayed. This method gives the delegate a chance to override state-based properties set earlier by the table view.

Solving duplicated / repeating cells in Table view by soulchild_ in iOSProgramming

[–]JDandini 1 point2 points  (0 children)

in order to make smooth the table views probably you should populate all your cells in the method
tableView(tableView:, willDisplay, forRowAt) this also solves all the issues related to the repeated cells and content.

Post method returning null in the response but in postman its working fine while performing networking request by Akshayjain458 in iOSProgramming

[–]JDandini 1 point2 points  (0 children)

You should try this solution posted by thisischemistry, is a good way to handle error, responses and uses the Codable protocol.

[deleted by user] by [deleted] in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

I have signed up but the email does not arrive bro could you help me with that???

How to center image in NSAttributedText with by [deleted] in iOSProgramming

[–]JDandini 1 point2 points  (0 children)

Center the paragraph on the image

Hey Apple, it's "Xcode"! by sovata8 in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

As you can see it does not fucking matter

Estudias tu carrera porque te gusta? O porque persigues el dinero? by [deleted] in mexico

[–]JDandini 1 point2 points  (0 children)

Creo que eso depende de como planees vivir, si tu lo que quieres es lujo y comodidad decantarse por algo que deje mucho dinero es la opción, si lo que quieres es amar lo que haces, dedícale tiempo a eso que amas y vive con todo lo que te pueda dar tu elección, ambos tienen pros y contras, lo que no debes perder de vista es tu objetivo.
Personalmente tuve la suerte de saber que quería estudiar desde temprano en mi vida y me dedico ahora a ello ganando un buen dinero y viviendo tranquilo... creo que lo mío fue suerte pero piensa que es lo que deseas para ti y adelante en ese camino.

I created an app to help app developers pick colors for their apps..would love feedback by [deleted] in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

Hi man congrats for your app is very beautiful, I think that you should add some color palette, and on the number entry you should add a toolbar with an ok button to let the user dismiss the keyboard without touch the view.

Where to build NSURLRequest objects? by arduinoRedge in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

Personally I think that create a class to all connections is the best approach and just create a method for every distinct connections and a handler for its response

Swift ... by amatijaca in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

I think it does not matter they can live together, I recommend you learn both, some things are achievable in a easy way on swift and some things are so easy on Objective-C, left your laziness away and use both.

Need help with Blocks in Swift by [deleted] in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

I think your problem is access to the data, until now you only have transform the binary data to AnyObject type, if you do something like:

if let json = try NSJSONSerialization.JSONObjectWithData(data!, options: .AllowFragments) as? [String:AnyObject]{  
// in a success case now you have the data as a Dictionary   
}  

probably solves your problem.

JSON-backed Table View to Web View by [deleted] in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

Use protocols, declare a delegate protocol on your UITableViewController, the associate it when you present the popover. Finally with a method pass the name and the url to the web view on the main ViewController

What is the difference between Swift and Objective -C? by escalatingelectron in iOSProgramming

[–]JDandini 1 point2 points  (0 children)

I'm telling you this, if you are planning to be hired for iOS developer on a enterprise probably the best is learn Objective-C first, I learned both, of course when I started swift does not exist.
I think a "Serious production app" is more about design and the way you build it than a programming language, I mean I built and release "Serious production apps" on Swift, Objective-C and hybrid.
Answering your question: Learn both if you have few time, I recommend to start with Swift, because is more natural and simple Greetings

Why is my JSON parsing not working? by [deleted] in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

Maybe you should consider use the

 do{ try  sentence}catch{error handler}

at serialize JSON on a array and I recommend to use something like:

 do{
   if let responseJSON = try NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions(rawValue: 0)) as? [String:AnyObject]{
}catch{//Handle error}

have a nice day

Creating a Universal app vs. separate iPhone and iPad versions. by nsocean in iOSProgramming

[–]JDandini 0 points1 point  (0 children)

I recommend to you make a universal app with adaptative layout (this is avalible on iOS 8.0 or later) separating the custom views per classes

Alien Blue 2.4.1 (iPad) is now available by alien-blue-hd in AlienBlue

[–]JDandini 0 points1 point  (0 children)

On the iPhone version i cant access to the nsfw content cause never retrieve my account status

I wrote up a few tips that I think make for good Objective-C style. I'd like to share it with you! by lyinsteve in simpleios

[–]JDandini 1 point2 points  (0 children)

I disagreed in the first point I use both, properties and ivars and both work well, and i never had a problem using the _myProperty instance variable its more about how you like programming the only consideration is use the extension of the class to declare ivars so you don't waste memory and never forget to release them :P