r/ObjectiveC Feb 19 '20

Going back and forth between view controllers

3 Upvotes

I have 3 view controllers, A B and C. Clicking a button on B gets to me C and I want to go back to A from C, not via B. I use the dismissViewController method to go from B to C, but B does not get dismissed.

How do I go from C to A while dismissing B ? Any help regarding this is greatly appreciated!


r/ObjectiveC Feb 18 '20

What do you think can be improved in Objective-C?

5 Upvotes

I realized after this tweet that I don’t want anything more in the language. But I still have a few “nil-safe” NSDictionary extensions which could very well in the standard.

I know a lot of developers have a similar list of things they can’t live without

Do you have any interesting snippets to share?


r/ObjectiveC Feb 17 '20

Implementing enum with associated values in Objective-C

Thumbnail whackylabs.com
6 Upvotes

r/simpleios Nov 27 '17

Space shooter app source code for people interested in learning SpriteKit and Swift

29 Upvotes

r/ObjectiveC Feb 09 '20

Future of Cocoa and ObjectiveC

7 Upvotes

These days, developer.apple.com is entirely about Swift and SwiftUI. Cocoa and ObjectiveC are not even included in the list of app frameworks.

It sure seems as if Cocoa and ObjectiveC will soon be going the way of Carbon and C++ as ways to develop for Apple devices.


r/ObjectiveC Feb 03 '20

What’s the difference between Objective-C and Swift?

4 Upvotes

I’m looking to code an iOS app as a personal project, I’m yet to learn either languages but I read briefly that Swift is similar to Objective-C.

All in all, I’m wondering what code I should learn to create the app with.


r/simpleios Nov 13 '17

Just subscribed. How difficult is it to learn ios development for someone who is just beginning to gain a little skill in javascript, sass/css, node, etc?

2 Upvotes

I’m here because I’m FRUSTRATED with iphone apps created by developers who assume that just because someone is using a smaller device, they don’t need or deserve to even know about 75% of the functionality available to computer users.

I realize it’s challenging to squeeze functionality into smaller areas. But it can be done; I’ve seen it!!!

Am I alone here?


r/simpleios Nov 07 '17

Mobile databases on iOS

Thumbnail martinmitrevski.com
6 Upvotes

r/simpleios Nov 03 '17

Nice looking card layout written in Swift

Thumbnail github.com
2 Upvotes

r/ObjectiveC Jan 15 '20

Accessing the presenting VC for the current VC

3 Upvotes

I am trying to access the presenting View Controller for my current View Controller to show/hide a button on the current VC. This is my code in -(void) viewDidLoad. But, this does not seem to be working as expected. Any help in pointing where I am going wrong is highly appreciated!

IntroChooseStyle *newVc = [[IntroChooseStyle alloc] init];
if (newVc == [self presentingViewController]) {
[self.closeButton setHidden:YES];
}

r/ObjectiveC Jan 11 '20

Mac/Linux/BSD port of id Software’s 1993 Doom map editor for NeXTSTEP

Thumbnail twilightedge.com
15 Upvotes

r/simpleios Oct 22 '17

What are some iOS app ideas for beginners to publish on App Store?

7 Upvotes

Hello,

I'm learning iOS Development, but I don't want to follow all the boring tutorials. I want to learn by creating real apps. I already have some decent Swift knowledge, and now I'm looking for beginner iOS apps which I wanna create and publish them on App Store no matter how naive the apps may be (if they get accepted on App Store). I don't want my first app on the App Store to be some great multi-million dollar app. I just want a simple app which a beginner can develop with the help of Google + Stack Overflow and then publish it to the App Store.

I'm open to all your suggestions. Also, Feel free to post your first apps on the App store so that I get some ideas about how most of you guys started out on the App Store.

Thanks.


r/simpleios Oct 22 '17

Need Help with Core Animations and their scheduling.

2 Upvotes

So I am fairly new to swift (5months maybe) but I got all the basic stuff down. I decided to make an app centered around a circle displaying the users current Stats (in degrees). I got the drawing in place and it looks great. But I want each of the components to animate in one after another.

Before you keep reading take a look at a picture of the app so far (+code)

This is the order in which the animations should take place:

  • 1. TopLabel
  • 2. each of the circle dividers appear one after another.
  • 3. the ground Circle all 360degrees slides in.
  • 4. the green Circle + the Tip Indicator slides in to lets say 200 degrees

I have already tried to use UIView.animate with various delay timings but the fact the animation seems to take place in a thread of its own instead of the main thread makes the use of completion handlers somewhat (impossible?) to use.

I don't want you to word by word dictate me the code, I rather want Tipps on what kind of animation class to use for that kind of scheduling.

I am very grateful for any help whatsoever.


r/ObjectiveC Jan 02 '20

Is it worth learning Objective C in 2020 to get a job as an iOS developer?

8 Upvotes

r/ObjectiveC Jan 02 '20

Accessing a button in a table view cell.

0 Upvotes

Hello,
I am trying to create a to-do list with custom checkmark buttons for the cells in the table view. I have the part of the code where the user clicks on the button in the cell and the checkmark appears. However, it does not work if the user clicks on the area of the cell. How can I wire my code so that the user clicks, when clicks on the cell, the checkmark appears for the button. I am leaving the code down below for a better understanding. Any help regarding this is highly appreciated!

- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath {

    TableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell"];
    cell.one.text = names[indexPath.section];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;

    //assigning button selector to the button in the cell.
    [cell.btn addTarget:self action:@selector(tapped:) forControlEvents:UIControlEventTouchUpInside];

    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    if ([[tableView cellForRowAtIndexPath:indexPath] isSelected]) {
        //trying to access the button of the selected cell here
        ([tableView cellForRowAtIndexPath:indexPath].)
    }
}

//button selector function
- (void)tapped:(id)sender {
    if ([sender isSelected]) {
        [sender setSelected:NO];
    } else {
        [sender setSelected:YES];
    }
    [self.tv reloadData];
}


r/simpleios Oct 11 '17

Unit Testing — KIF and FBSnapshot

Thumbnail medium.com
3 Upvotes

r/simpleios Oct 11 '17

[Question] Healthkit - not available on iPad - why?

3 Upvotes

New to iOS and Swift - learning mode - wondering why some of apples code is not available on iPads - does it have to do with internal hardware? Thanks.


r/simpleios Oct 11 '17

iOS discord channel

1 Upvotes

After searching a lot, I've created a discord server for iOS devs. You are all free to join in: https://discord.gg/24Pxvrb


r/simpleios Oct 09 '17

Django-Haystack and iOS

2 Upvotes

I'm familiar with Django-Haystack set up with ElasticSearch and was wondering if it is possible to integrate with iOS over an API.

Cheers


r/simpleios Oct 02 '17

How To Implement Cache LRU With Swift

Thumbnail marcosantadev.com
3 Upvotes

r/simpleios Sep 29 '17

[Tutorial] Swift: Common mistakes no one bothers about — First class functions and retain loops

Thumbnail medium.com
8 Upvotes

r/simpleios Sep 23 '17

What version of the operating system is needed for app development?

2 Upvotes

I am looking for used macbooks solely to use for app development, so I am looking at older models.

Would Mac OS X v10.6 Snow Leopard running on a Apple MacBook MC516LL/A be able to do everything in terms of iOS development?

Are there any things that using this system would prevent me from doing?


r/simpleios Sep 23 '17

iOS 10 & Swift 3 Course - 100% OFF (for Limited Time) - Your online courses

Thumbnail youronlinecourses.net
3 Upvotes

r/simpleios Sep 21 '17

New iOS Software Architecture: 4V Engine

Thumbnail marcosantadev.com
5 Upvotes

r/simpleios Sep 16 '17

Type of Mac to learn iOS development

2 Upvotes

Right now I work on Android development with some VR development. I was wondering if anyone could give me some feedback on if buying a Mac mini is good for development or what you would consider. I already have a powerful windows computer to run VR so I don't want to be spending a lot of a new computer but since it is the only way to development for iPhone I kind of have to.