Similar to the implementation of the Meituan image selector, Meituan image Selector
1. Image Selector
Many apps have image selectors, which are basically in the nine-square format. This time, like the comments of Meituan, the picture selector of the sending status made a demo. The main reason is to copy the sending status and implement the functions, but there is something that is not done, that is, when sending the status, if there is no input text, the following completion button is gray and cannot respond, if you have good suggestions, please share them.
2. Album
Access the album. You can select multiple images for accessing the group. I use a https://github.com/SpringOx/AGImagePickerController.
This is quite good. I made some changes based on him to make it more like the image selector of Meituan.
The title of the album can be set to Chinese. You only need to add Localized resources can be mixed in info. plist of the project and set the value to YES.
3. Map Positioning
The positioning of maps is complex, and it is unrealistic to develop your own map on mobile devices. The idea for the moment is that I only transmit the longitude and latitude of the location to the server. The server can use interfaces provided by third parties such as amap and Baidu map to put the coffee shop around the location, supermarkets and other locations are returned to mobile terminals. It is too difficult to apply maps on the backend.
So now the mobile end only needs to save the longitude and latitude of the location, and the backend will upload the code
Github Source: https://github.com/stevenxiaoyang/ReportState.git