Bejegyzések

Bejegyzések megjelenítése ebből a hónapból: szeptember, 2021

Simple 'Notes' Application for Practice

Kép
 I wanted to practice using Core Data, so I decided to create a NotePad app. My biggest lesson was that iOS ' developers' are not as good at his job as android developers. OR there are more android developers than iOS developers. OR android developers are more helpful. The main gist is that I got lost very often because silly advices. The internet is full of incompetent people who are eager to answers your questions... without knowledge. One of my problem was that in UITextField I couldn't place the text on the top left corner. I searched for the answer and I got a whole bunch of code snippets which were extremely complicated. I couldn't believe that it had such a difficult solution. In addition I couldn't break lines. I was struggling two hours with this while a kind man at the very bottom of a Stackoverflow question replied that there was no way to break lines, instead he advised to use UITextView. Wow...  is it not the same?! Ok, two problems are solved. My other...

Order is the key in Swift Interface Builder

Kép
 It was two weeks for me to deal with a simple custom cell in UITableView. I thought that it would just an easy thing to drag and drop some views and then make some constraints. But there was a very tough custom cell which was sticked to its size which could't be defined by me. Running on an iPad        Running on a mini device These are the screenshots in runtime on a mini device and on an iPad. Hundreds of times I deleted all constraints and built up them in an other order, but nothing worked. I tried to adjust the width of the cell, but it was locked. I began to guess, that it had been something wrong with the order at the starting point, so I tried to look through the source code of the Main.storyboard. (You know if you delete a view without unbinding its connections, you would be in trouble) Well, I tried to delete some things in source code, tried to write some code, but it became a bigger mess in it, and the app continuously crashed. One and a half weeks ...