IOS Sina Weibo client demo (8) Adding image amplification, slide view and positioning Functions

Source: Internet
Author: User

Because Sina Weibo is the top job of public course selection at the end of the course, a new function is added, mainly by clicking the Weibo image to enlarge; sliding left and right shows the side view, that is, the slide view (similar to weico ); locate.

The following is a brief introduction. The detailed content is available in my blog.ArticleDescription. AttachCode: Download link

1. sliding left and right shows the side view. This is an imitation of weico's interface, that is, sliding left and right shows the side view. The implementation is also very simple. There are many third-party libraries on the Internet, but in fact the implementation is also very simple, nothing more than the cascade of several views, in iOS, Slide left and right to display the slide view on the side menu bar
This article introduces two implementation methods.

2. image amplification. Here I use the category method to add a method and an attribute to the uiimageview. This method is used to process amplification, which is actually relatively simple, it is to add the event processing of the tap for it, and the attribute is used to save the URL of the image. Here, the extended attribute will use associative. For more information, see my IOS
Extended Mechanism category and associative are described in detail in this article.

Iii. Positioning: This part is relatively simple. Location, location encoding, and map are all relatively simple. For details, refer to the Code in the project!

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.