Multiple block Problems
On a page for adding text, leftbarbutton deletes the string from the array directly. The rightbarbutton completes and corresponds to two blocks respectively. The completed blocks are written at the beginning, after being written to viewWillDisappear (not written to the corresponding Click Event, tiankeng), there was always an error when the delete function was added. It turned out that after clicking the delete button, the block that is also called will modify the data source, resulting in various wonderful issues refreshing collectionview !!!
Note that a page contains multiple blocks. You must not write them to viewWillDisappear, but to the corresponding click event !!!
Adjusted for one afternoon... Thought it was a reloadData problem? Block problems? @ Syncronized () {} is also used. I am dizzy !!!
The probability of this problem is relatively small, as long as you pay attention to the specification, it should not appear