Similar to the implementation of WeChat Meituan's image selector, Meituan's image Selector

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.