Coder Social home page Coder Social logo

chatapp's Introduction

ChatApp for IOS

简介

我的第一个IOS程序。实现了比较基本的文字聊天功能。

项目是用Objective-C写的,这是一门非常神奇的语言,一天可以上手,个人非常喜欢它的语言设计。

实现

本项目引用了FMDATABASE ,一个封装了sqlite接口的简便的数据库操作类的第三方库,除此之外都是自己从零开始开发。通信方面用的都是TCP连接,设计了一些小的语句格式规则分别对应 登录验证 收发消息 更新在线情况 。

服务器端由于目前只有消息转发服务,因此由C语言套接字实现,目前做了登录,注册,消息转发的功能。后期如果需要加其他服务,服务端会考虑用http + websocket,服务端目前没有做存储,因此不支持客户端发送离线消息,只允许两个在线的人聊天。

客户端做了消息的存储,用的是sqlite,因此任何时候都可以看到以前所有的聊天记录,并且做了一系列的消息响应机制,在有消息的时候可以实时看到界面的刷新。

使用截图如下:

  1. 登录界面

LoginView

  1. 注册界面

RegisterView

  1. app主界面

MainView

  1. 聊天界面

ChatView

任何问题

任何问题请联系[email protected] 谢谢

chatapp's People

Contributors

duzhekai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.