I think it's a Swift Realm problem, so please help me.

Asked 2 years ago, Updated 2 years ago, 40 views

Let me show you the picture first.

If this part is the part that receives data from the server, if you look at the center, there are two

You can see the print. First, the upper part is the output of the entire data received, and the print below is

Among them, I printed it out to check only the data I wanted. The reason_state is

It is a value in the form of a bowl. Should that be reflected in MintRealm.createOrUpdateContent below

I'm having a hard time because it didn't work. Even if you take it down there, the result is the same. After the function is over,

It's the same if you take it somewhere else.

The format of the let Content List is as follows:

This is the content of the MintRealm.createOrUpdateContent syntax executed earlier.

The matter is urgent and hopeless because it is related to work. There's no shooter;;; ;;;

After hiring a new mobile player, I'm doing an eagle workshop alone without anyone teaching me.

I'm eagerly waiting for the advice of my seniors and colleagues in the same industry.

ios swift xcode

2022-09-22 13:26

1 Answers

Swift grammar, I don't know, but when I looked it up a little bit, I found that let was a constant declarator, and most of the variables were declared let Why don't you use var instead of let


2022-09-22 13:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.