WeChat Swift full project application source code, WeChat swift source code

Source: Internet
Author: User

Full Swift project application source code, swift source code

TSWeChat description

A WeChat alternative, written in Swift.

Running Environment

  • Cocoapods 0.39.0 +
  • IOS 8.0 +/Mac OS X 10.9 +
  • Xcode 7.2 +
  • Source code download: http://code.662p.com/view/13219.html

Preview

Run pod install on the terminal, and then run TSWeChat. xcworkspace to view all the UIS.

Features

  • Rich Text, emojis, images, and sounds can be sent.
  • [Backcolor = rgba (0, 0, 0, 0.0351563)] the image displayed in TSChatImageCell is drawn using [backcolor = rgba (0, 0, 0, 0.0351563)] Mask Layer, you can freely switch the chat background image, so that the UI will not look bad.
  • Custom emoticons keyboard, custom tool keyboard.
  • The [backcolor = rgba (0, 0, 0, 0.0351563)] wav file of the recording will be automatically converted to [backcolor = rgba (0, 0, 0, 0.0351563)] amr file, this facilitates File Transfer with Android devices. Both files have been cached. Upload the [backcolor = rgba (0, 0, 0, 0.0351563)] amr file, and play back the file using [backcolor = rgba (0, 0, 0, 0.0351563)] wav.
  • When you click the sound [backcolor = rgba (0, 0, 0, 0.0351563)] TSChatVoiceCell, it will automatically detect the cache. If not, Alamofire will be used for automatic download.
  • When you send an image, the system uses the Kingfisher cache mechanism to store it locally. After the upload is successful, the system automatically changes it to [backcolor = rgba (0, 0, 0, 0, 0.0351563)] MD5 value file name.
  • Data is loaded from the [backcolor = rgba (0, 0, 0, 0.0351563)] JSON file. All [backcolor = rgba (0, 0, 0, 0.0351563)] the Model is created using ObjectMapper.

File directory[Td]

Directory Name Introduction
Classes [Backcolor = rgba (0, 0, 0, 0.0351563)] ViewController, [backcolor = rgba (0, 0, 0, 0.0351563)] View, [backcolor = rgba (0, 0, 0, 0.0351563)] files such as Model. subfolders are divided by business logic. For example, [backcolor = rgba (0, 0, 0, 0.0351563)] Message, [backcolor = rgba (0, 0, 0, 0.0351563)] Address Book, [backcolor = rgba (0, 0, 0, 0.0351563)] Time, [backcolor = rgba (0, 0, 0, 0.0351563)] Me, [backcolor = rgba (0, 0, 0, 0.0351563)] Login sub-Directories
Classes/CoreModule It mainly stores the business logic encapsulation of some basic libraries, such as [backcolor = rgba (0, 0, 0, 0.0351563)] Network, [backcolor = rgba (0, 0, 0, 0, 0.0351563)] Socket engine, [backcolor = rgba (0, 0, 0, 0.0351563)] Model folder, etc.
General This directory contains the Views/Classes and Categories that will be reused and stores [backcolor = rgba (0, 0, 0, 0.0351563)] [backcolor = rgba (0, 0, 0, 0.0351563)] class, such as color classification,
Helpers Stores non-business logic classes or category
Macro Store macro definitions and constant names used by the entire application, such as [backcolor = rgba (0, 0, 0, 0.0351563)] types name, [backcolor = rgba (0, 0, 0, 0, 0.0351563)] page title name, key used by a third-party library, etc.
Resources Store resource files, including [backcolor = rgba (0, 0, 0, 0.0351563)] Assets. xcassets, [backcolor = rgba (0, 0, 0, 0.0351563)] Media. xcassets, [backcolor = rgba (0, 0, 0, 0.0351563)] audio files, [backcolor = rgba (0, 0, 0, 0.0351563)] plist files, etc.
Vendor Use [backcolor = rgba (0, 0, 0, 0.0351563)] cocoapods to store some third-party libraries.
Supporting Files Original project directory
Scripts APNs test Script: export the script directory of the IPA file. Of course, there are some other scripts that will be added slowly.
Sketch Stores the Sketch source files of some images. All the resource files in the project come from the IPA folder, but some resources are unavailable or not found, so I decided to do it myself. Experience the feeling of being a designer, 2333




Http://ios.662p.com/thread-2789-1-1.html

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.