E
E
Emil2020-08-30 15:28:12
Swift
Emil, 2020-08-30 15:28:12

Why does the animation "fly"?

Good afternoon.
There is an animation of a long picture behind, creating the illusion of soap bubbles.

override func viewDidAppear(_ animated: Bool) {
                  UIView.animate(withDuration: 50, delay: 0, options: .curveEaseIn, animations: {
      
                  print(" y:\(self.WordsPicture.frame.origin.y) size: \(self.WordsPicture.frame.size)")
                  print(" x:\( self.WordsPicture.frame.origin.x)")
                  self.WordsPicture.frame.origin.y = -self.WordsPicture.frame.size.height
                  print(self.WordsPicture.frame.origin.y)
              }, completion: { finished in
                  print("Animations is end")
              })
              //--------------------*****************---------------------
      
          }

On top of it there is a registration form, as soon as you start typing text into the TextField, the animation "wedges" and it "jumps" somewhere down. Along the way, I see this message in the console:
2020-08-30 17:22:40.299587+0500 400words[1018:87877] [general] Connection to daemon was invalidated


What could be the reason?

Answer the question

In order to leave comments, you need to log in

10 answer(s)
I
Ivan Vorobei, 2020-08-30
@DyadyaEmil

Layout fires , you can make sure in the viewDidLayoutSubviews method

J
jackroll, 2015-07-18
@Wojciech

If not fundamentally, then it will be more painless to roll over to Java. Because having studied the "bare" (read: the one that many books write about) C ++, you are unlikely to be able to write demanded applications on it. You will have to learn a lot of new libraries and frameworks, like Boost, about which there is no Russian-language documentation; WinAPI, which is very difficult to understand and get used to, etc.
And Sharp has everything available out of the box: ASP.NET, ADO.NET, WinForms and WPF

P
programmerjava, 2015-07-18
@programmerjava

You probably already know that in C# they mostly do what in C++. I will not repeat.
When I was studying, I tried c, c++, c# .. the latter studied well, but ran away to the Java camp. Tried php, js, python. win api also dabbled and wrote window games when he studied. In general, until Java reached how much did it take? Well, maybe 2 years.
You learn C# and further thoroughly. Don't jump back and forth. If you want to write on others, then play around for now, and choose the main C # for yourself.
You will constantly jump - the training will be delayed. All languages ​​are good. You just think how much this one travels to Sharp from other languages. Still, they want to know him, but these advantages are already less and less people (but he is also good) ....

D
Dmitry Makarov, 2015-07-18
@DmitryITWorksMakarov

There is more freedom in c++....in it you can write a lot of mistakes from scratch.....if you know c# well and follow this path/style in c++, then there is not much difference in similar tasks, it may even be good that they started with c# .... well, perhaps you need to be more disciplined.
But there are tasks specific to c++: low-level programming, working with memory, pointers. It's a completely different world...

S
Sergey, 2015-07-17
Protko @Fesor

without finishing the study of sharp

Are you talking about syntax? CLR? Or about what?
In general, most of the knowledge quietly migrates back and forth.

E
Espleth, 2015-07-18
@Espleth

IMHO is not difficult, languages ​​are similar. But what's really annoying is some of the annoying/unusual features of C++ that you encounter along the way.

S
Stanislav Makarov, 2015-07-18
@Nipheris

> throwing the acquired knowledge into the trash and starting all over
again, you won’t throw anything away anywhere. On the plus side, you just have to make a little more decisions yourself, and the discipline, let's say, is stricter. Core Knowledge is development methodologies, algorithms, and general skills for writing and debugging code. In the end, you are not switching to Haskell, and not even to F #, but to a language that was created on the basis of pluses. If, after the transition, you still say that you threw all the knowledge into the trash, then apparently there were not very many of them.
Of course, there is a standard .net library, CLR and other platform things, but in modern realities, you have to constantly learn something new. After the Javascript boom in the last 5 years, it is pointless to deny this fact.

A
Ai Lab, 2015-07-18
@vpuhoff

It will not be easy, although it is possible, there will be various "features" of C ++, which after C # look like bugs, but it turns out they are "features", reprogramming the brain to the C ++ style is not so easy, you have a head start due to the fact that you know C # superficially , it might be easier.

B
beduin01, 2015-07-18
@beduin01

It's easier to switch to D . It will be the same C # only with a simpler syntax and the ability to link with pure C and C ++ through Calypso
Here is a very good book ddili.org/ders/d.en/index.html
You can write websites and program microcontrollers in Di.

A
AxisPod, 2015-07-23
@AxisPod

It all depends on what level is required. If you study C++ deeply, you can get stuck for a long time. Syntactically, they may be close, but writing optimal code requires a lot of knowledge. And given that this is not a fullstack language, there will be a lot of problems with libraries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question