If you want to run this project on your iPhone, you have to prepare for a Mac and have Xcode installed.
There is no special way to use it. If you don’t want to play with your phone, you can open this app and enjoy the animation. It’s also easy to exit the animation, press…
Apple has been launching SwiftUI for a while, and I’m also learning about SwiftUI and benefiting a lot.
Some time ago, I have been learning about list. I learned about the details of how SwiftUI handles List by learning the video of WWDC19. But it is a pity that WWDC videos only provide a way to slide the delete cell, but what I want to achieve is to delete the cell by clicking a button on the cell.
Obviously, the method of sliding to delete a cell is suitable for the table views that their cell’s height is not too…
Chinese version -> Here
Table views have always been the most popular guests for many apps. In fact, more than 90% of the software has a tabular view. Numerous UI designers like to add images to the table view, such as the most popular Twitter and Instagram.
It’s good to use the image in the table view, but it will bring a problem. The image loading time is longer than other content. If the image loading process is placed in the main thread, it will cause the table view to appear unsmooth when sliding.
打开你的 Xcode ，创建一个新的项目, 选择single view app这个选项， 给你的项目命名为LazyLoadImage。
接着打开你的故事面板（Main.storyboard），删除掉预先创建好的view con …
When we use the TextField control, there is a natural problem with “how to turn off the keyboard after the user has finished typing.” Obviously, this problem has a better solution on the iPad, because the iPad provides a button to turn off the keyboard.
I think, not everyone knows that Xcode has a button that sets the priority of the constraint.
To be honest, I also learned the concept of “priority of constraints” recently. At that time I was talking about some functions of constraint with a professor. Inadvertently we talked about the priority of the constraint. I was confused, I had no idea what he was talking about, and he was also surprised that I didn’t know the concept.
When we set constraints on some controls, we can set the priority of these constraints. Just click on these constraints in the Attribute Inspector…
The animation is a very important element in the development of software, and at the same time animation can make the user experience more perfect. Recently I tried to develop my first Cocoa Touch Framework — “HReminder”. it’s similar to the button that Medium uses it to remind readers to “Start from the beginning”.
HReminder is a Cocoa Touch framework and manages button displayed at the top of the screen. It is especially well suited as a small tag to remind users about something.
It has an interface similar to the button displayed by Medium which Medium app uses this button to reminder reader to ‘Start from beginning’. It now supports both the iPhone and the iPad.
Here are some screenshots showing what you can build with HReminder.
我的设备是Macbook Pro (3-inch, 2017, Two Thunderbolt 3 ports)，256G SSD。最近开始有些存储压力了，倒不是没有内存了，只是看到系统占用的内存达到83.6GB，觉得很吃惊，于是开始清理内存。用Clean My Mac清理一部分旧文件后，决定对Xcode动手。
sudo tmutil listlocalsnapshots /
tmutil deletelocalsnapshots 备份日期
~/Library/Application Support/iPhone Simulator
~/Library/Application Support/iPhone Simulator/6.1/tmp(以iOS Simulator 6.1为例)
~/Library/Application Support/iPhone Simulator/6.1/Applications(以iOS Simulator 6.1为例)
👨🎓/study communication engineering🛠/love iOS development💻/🐶🌤🍽🏸🏫