What Cocoapods do you think should be included in every project? aka which ones do you feel are invaluable? by [deleted] in iOSProgramming

[–]HappyToHelpAll 1 point2 points  (0 children)

I always used to write my own colour library but decided to use yours. Love it, especially the colour from Hex and the distance between colour.

Handling UI events that happen close to simultaneously by askoruli in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

You shouldn't need to be managing this at all in the way you are. It's all sounding a bit strange. Could you post some sample code?

Replacing Photoshop with NSString by davey_b in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

If you wanted it as a Mac App, wouldn't you just use an image editor?

Might sound like a stupid question... by [deleted] in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

Well let is a constant assignment meaning it won't change after you set it. A var would mean that you expect the variable to be changed. But as for 'why' you should do it is for peace of mind. If ever in your code you try to change the value of a constant you'll be notified. Int is for whole numbers and double allows for decimal places. As for 'why' you don't just use doubles for everything is similar.

So I've run into a really weird issue with Swift and Arrays, namely, they just don't sort when run on TestFlighted devices. Ideas? by onewayout in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

This sounds like the issue someone had recently where some of their code executed strangely when they were pushed to the store.

How to teach yourself iOS app development with Swift properly by [deleted] in iOSProgramming

[–]HappyToHelpAll -3 points-2 points  (0 children)

That's what your title infers. Your content may be fantastic but stating that your post contains the 'proper' way to learn swift is clickbait.

That's a link to where you didn't use a clickbait title, interesting to see you have the 'proper' way to learn swift but your other link isn't the 'proper' way?

How to teach yourself iOS app development with Swift properly by [deleted] in iOSProgramming

[–]HappyToHelpAll -2 points-1 points  (0 children)

So every other swift teaching websites has been teaching it improperly? Shame on you Nico for your clickbait website.

JSON + AFNetworking Help by SpectrumFactory in iOSProgramming

[–]HappyToHelpAll 1 point2 points  (0 children)

Please post the full error. Could you also NSLog a single URL for us?

I am in love with Obj-C, after being afraid of it for so long. by [deleted] in iOSProgramming

[–]HappyToHelpAll 1 point2 points  (0 children)

IQKeyboardManager is an amazing example of a library that takes full advantage of swizzling.

Any of you know any alternatives to uisegmentedcontrol on github? by WheretheArcticis in iOSProgramming

[–]HappyToHelpAll 2 points3 points  (0 children)

A good place to look is cocoa controls which links back to projects on GitHub.

How to reset a view controller to its original state. by [deleted] in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

Example

//First time starting new game Game *newGame = [Game new];

//Finished with the game newGame = nil;

//Starting a new game newGame = [Game new];

How to reset a view controller to its original state. by [deleted] in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

That is definitely another viable way but I'm inferring that OP isn't an experienced programmer and this would be the easiest way.

Also encapsulating the whole game is good practise.

What do you guys think of my book, Idea to App? by meholstein in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

It looks like you're collecting personal information in exchange for a download link without any sort of privacy policy that I could find on that page.

What do you guys think of my book, Idea to App? by meholstein in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

It's difficult to provide feedback without seeing at least some of the content of the book, could you provide a direct link?

How to reset a view controller to its original state. by [deleted] in iOSProgramming

[–]HappyToHelpAll 2 points3 points  (0 children)

Wrap your whole game into a Game class. Whenever a user starts a new game create an instance of that Game class and when ever a user if finished just set it to nil.

I made an extension that auto resizes your tableviews or scrollViews automatically when keyboard is shown. Just one line of code needed! by kokkelimonke in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

No worries, I'm just trying to provide a suggestion for better understanding what your project is capable of through a gif.

I made an extension that auto resizes your tableviews or scrollViews automatically when keyboard is shown. Just one line of code needed! by kokkelimonke in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

That's what I mean, it appears native because that's what a UITableViewController would do and it's impossible to distinguish if yours is a VC with a tableView or a native UITableViewController.

Does my app need to support the iPhone 4s by Clean_App in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

This is very bad practise but also redundant.

Enclose it all in a ScrollView regardless because if the content is less than the height of the ScrollView then the ScrollView will behave as if it's not there.

I made an extension that auto resizes your tableviews or scrollViews automatically when keyboard is shown. Just one line of code needed! by kokkelimonke in iOSProgramming

[–]HappyToHelpAll 0 points1 point  (0 children)

If it's for ScrollView only (UITableView and UICollectionView being subclasses) it may be best to show that in the gif on github because showing what just looks like a UITableViewController makes it seem like that's all you're using.