Two English design patterns related to mobile development

Source: Internet
Author: User

(1) instagram

 

Instagram is a free photo sharing program and social network that was launched in 2010 and had a tremendous success since then. on Alibaba l 2012, Facebook has acquired Instagram for approximately $1 billion dollars in cash and stock. this was a big acquisition price: contrast this to the $35 mil dollars that Yahoo paid for Flickr in 2005.

 

The principle of Instagram is quite simple: the app allow you to take a picture, apply a digital filter to it, and then share it with other Instagram users or upload the picture to your favorite social networking service. the picture below has strates how different filters can be applied to a picture taken with a mobile phone.

You snap a picture then choose a filter from the bottom of your screen: you can scroll left and right to see different filters. once you apply a filter on the picture will change its visual appearance.

A) How you wowould implement the filter functionality in Instagram? Which design pattern shall we use to make the application of different filters on the picture possible in the app? Give a short explanation. In participates, show an appropriate class dimo-( S) and enough code fragments to restrict strate your use of the pattern to solve the problem.

 

Once you have taken a picture and applied a filter on it you have also the option to share it on your favorite social network. The user interface below has strates this:

You can click any of the social networks from the list presented in the "sharing" Window of the application that you want to post your photo on. enter the username and password associated with your account to link it with your Instagram account. your photo will appear in your "feed" and also the feed of other Instagram users that are following you. it will also be posted to any of the social networks you selected.

B) How you wowould implement this functionality? Which design pattern wocould you use for sharing your Instagram picture with your favorite social network? Give a short explanation. In participates, show an appropriate class dimo-( S) and enough code fragments to restrict strate your use of the pattern to solve the problem.

 

(2) iPhone airplane settings

 

The iPhone's airplane mode lets you take advantage of the iPhone's built-in iPod (among other capabilities) while temporarily turning off its phone, e-mail, and Internet functions when flying. to do so, merely tap airplane mode on the settings screen to display on (rather than off ). this disables each of the iPhone's wireless radios: Wi-Fi, carrier, 3G and Bluetooth. in the figure below on the left the "airplane mode" is switched off which means that Wi-Fi and the carrier is active. the figure on right depicts the scenario when the "airplane mode" is switched off. the result of this operation is that the Wi-Fi is automatically switched off and the carrier selection is inactivated.

A) How you wowould implement with the help of a design pattern the functionality of the iPhone airplane mode described above? Which design pattern wocould you use? In particle, show an appropriate class digoal (s) and/or enough code fragments to restrict strate your use of the pattern to solve the problem.

 

Now if we can dive deeper into the Wi-Fi selection functionality. wi-Fi is typically the fastest wireless network you can use to surf the web, send e-mail, and perform other Internet tricks on the iPhone. you use the Wi-Fi setting to determine which Wi-Fi networks are available to you and which one to use based on its signal. tap Wi-Fi, and all Wi-Fi networks in range are displayed. A signal strength indicator can help you choose the network to connect to if more than one is listed; tap the appropriate wi-fi network when you 've ve reached a demo. if a network is password-protected, you'll see a lock icon.

B) How you wowould implement with the help of a design pattern the Wi-Fi functionality of the iPhone described above? Which design pattern wocould you use? In particle, show an appropriate class digoal (s) and/or enough code fragments to restrict strate your use of the pattern to solve the problem.

 

The solution is coming soon, please wait!

 

[SunnyHttp://blog.csdn.net/lovelion]

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.