GithubHelp home page GithubHelp logo

qlyx / addshoppingcart Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 9.0 401 KB

仿淘宝点击加入购物车前选择尺码、颜色信息的弹出视图,尺码、颜色分类、库存等信息我是写死的数据,应该从服务器获取这些信息,没有服务器就将就下,纯代码编写,有需要的直接粘贴复制即可,改变数据源就可以了,选择尺码或者颜色任意选项后会根据该选项库存是否为0,确定某些选项不可选,淘宝这个页面的商品图片还可以点击看大图,长按保存图片,网上这类代码很多,我就不往里嵌入了,有需要的自行嵌入吧,本人代码风格不好,如不喜欢可以参照思路,还简单模仿淘宝的商品详情功能,并未完全把淘宝详情页的功能写出来,按钮的点击方法也都写了,只是没有实现,有需要的朋友可自行实现,希望对大家有帮助

Home Page: http://code.cocoachina.com/view/132117

Objective-C 100.00%

addshoppingcart's People

Contributors

qlyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

addshoppingcart's Issues

内存泄漏

run起来以后不做任何操作,内存一直上升,直到被系统杀掉。

TypeView中的分割线更改颜色有问题

UILabel *line = [[UILabel alloc] initWithFrame:CGRectMake(0, upY+10, self.frame.size.width, 0.5)];
line.backgroundColor = COLOR_SEPARATOR;
[self addSubview:line];
在TypeView中更改分割线的颜色,如:0x999999颜色依旧很深。不知道为什么不能设置设置浅颜色,不知是不是因为TypeView的对象是放在ScrollView上的原因。

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.