摘要: 峰哥请到舒迅写关于微信商业模式和创业机会。舒迅曾担任百度贴吧事业部总经理,现在负责百度直销职能体系,百度销售副总裁助理。如下是他的原文。首先申明这文章和我所在公司无关,对微信的观察是一种学习,同时希望给创业者一些启发。一、用户需求和商业价值微信首先是一个通讯工具。无论腾讯想把微信做成什么,在用户的认知里,他到今天已定型了,再也改不了了。对于绝大多数用户微信是一个通讯工具,我把这叫做用户的主诉求,或者一级需求。一个产品只会有一个主诉求,此外其它都是二级需求,二级之下还有三级四级。比如微博用户看微博,就是一级需求(浏览),发微博就是二级需求(表达),发微博插入各种功能就是三级需求。需求的层级越低, 阅读全文
posted @ 2012-12-13 12:44 GreyWolf 阅读(137) 评论(0) 推荐(0)
摘要: 在Android上,因为 Google 自己实现的 Android 标配的GCM(Google Cloud Messaging,原来叫C2DM) 在国内基本不可用,所以,对于开发者来说,如果需要 Push功能,怎么样选择成为了一个问题。到目前为止,国内尚没有完全向开发者免费、开放的 Push 服务可用。国外有几家第三方推送服务,但一般都要收费。所以一般来说,国内的开发者不得不考虑自己来搭建 Push服务。自己构建 Push服务时,一个比较自然的选择就是,基于开源的现在方案来做。使用 Google或者百度搜索 “Android Push 推送”等关键词,表明已经有不少人研究过。排在前边的是这样几 阅读全文
posted @ 2012-12-13 12:20 GreyWolf 阅读(383) 评论(0) 推荐(0)
摘要: 本文讲述如何实现一个标签Tag列表的效果。在iOS项目中的效果为图上所示:在各个任务下,包括对应的标签列表。首先,自定义一个UILabel类:FillLabel.h:#import<UIKit/UIKit.h>@interfaceFillLabel:UILabel@endFillLabel.m#import"FillLabel.h"#defineMAX_SIZE_HEIGHT10000#defineDEFAULT_BACKGROUDCOLOR[UIColorcolorWithRed:47.0/255green:157.0/255blue:216.0/255alp 阅读全文
posted @ 2012-12-13 01:01 GreyWolf 阅读(322) 评论(0) 推荐(0)
摘要: 可以利用:http://www.cocoacontrols.com/platforms/ios/controls/ah3dpullrefresh 的Demo。可以采用Category的方式,对于UITableView进行扩展(类似于动态创建PushView),例如UITableView+PushAndLoadRefresh.h;而UITableView只要调用扩展方法,通过block回调,重新刷新列表而达到目的。这样还使得UI上最大的松耦合。源代码如下:UIScrollView+AH3DPullRefresh.h#import<UIKit/UIKit.h>@classAHPullT 阅读全文
posted @ 2012-12-13 00:56 GreyWolf 阅读(349) 评论(0) 推荐(0)
摘要: MonoTouch是利用C#语言进行iOS开发的跨平台解决方案,包括支持iPhone/iPad的开发,目前也支持了最新的iOS 6的版本。官方地址:http://xamarin.com/github Sample:https://github.com/xamarin/monotouch-samplesapp应用:http://xamarin.com/apps/allMonoTouch可以利用C# 语言进行iOS开发,意味着作为.Net程序员,也可以很容易地进行iOS开发。当然,能够理解objective-c语法对你的iOS学习也是很有帮助的。本篇文章,主要教你如何利用MonoTouch来绑定原 阅读全文
posted @ 2012-12-13 00:54 GreyWolf 阅读(307) 评论(0) 推荐(0)
摘要: 本文介绍怎样在iOS客户端实现google oauth2的登录,并且通过asp.net mvc中的controller的api接口进行form验证。首先,先了解下google oauth2的相关资料:https://developers.google.com/accounts/docs/OAuth2这里介绍了五种的登录方式分别有:Web Server方式(在Web上进行),Client-side方式(运行在浏览器中的javascript),Installed方式(例如,Android, Windows, Mac OS, iOS, Blackberry等等),Devices方式(在游戏控制台,视 阅读全文
posted @ 2012-12-13 00:52 GreyWolf 阅读(703) 评论(0) 推荐(0)
摘要: 做过iOS开发应该都有见过ASIHTTPRequest这个强大的HTTP网络请求类库,今天主要来介绍利用ASIHTTPRequest实现异步队列。官方地址:http://allseeing-i.com/ASIHTTPRequest/github地址:http://github.com/pokeb/asi-http-request/tree 里面具体可以进行HTTP常见的使用,Get,Post,同步,异步的方式进行请求,里面内嵌一些请求方式,例如ASIWebPageRequest,即WebPage呈现方式;ASIS3Request,即Amazon Simple Storage Service.. 阅读全文
posted @ 2012-12-13 00:50 GreyWolf 阅读(257) 评论(0) 推荐(0)
摘要: category与associative作为objective-c的扩展机制的两个特性,category即类型,可以通过它来扩展方法;associative,可以通过它来扩展属性;在iOS开发中,可能category比较常见,相对的associative,就用的比较少,要用它必须使用<objc/runtime.h>的头文件,然后就可以自由使用objc_getAssociatedObject以及objc_setAssociatedObject,我们来看下这两个方法:OBJC_EXPORTvoidobjc_setAssociatedObject(idobject,constvoid*k 阅读全文
posted @ 2012-12-13 00:41 GreyWolf 阅读(316) 评论(0) 推荐(0)
摘要: 在iOS中有一些基本的设计模式:delegationprotocolmodel-vew-controllertarget-actionnotificationdeclared properties下面分别介绍一下各个设计模式的用途。Delegation(代理)摘自:http://developer.apple.com/library/ios/#documentation/General/Conceptual/DevPedia-CocoaCore/Delegation.html这是Apple的权威解释。delegation,委托模式(另外有个常用的proxy模式,二者的区别是代理模式一般要更严格 阅读全文
posted @ 2012-12-13 00:34 GreyWolf 阅读(129) 评论(0) 推荐(0)
摘要: Streamline Your App with Design PatternsIn Objective-C programming, one way to add behavior specific to your app is through inheritance. You create a subclass of an existing class that either augments the attributes and behavior of the superclass or modifies them in some way. But there are other, mo 阅读全文
posted @ 2012-12-13 00:33 GreyWolf 阅读(226) 评论(0) 推荐(0)
摘要: 前一阶段,把一个应用进行了移植,可以在iphone和ipad上运行了,参考:http://www.cnblogs.com/2018/category/273921.html准备放到app store上,对整个软件的收费方式进行了查找,汇总如下:收费模式apple手机app开发者的几种收费方式1、开发付费app与平台分成app开发者先申请IDP(iPhone Developer Program)账号(普通个人账号99$/年。申请流程中需要你填写信用卡账号信息,国内的双币种信用卡都可以)。具体流程见:这里。申请好后,可以将自己做好的app上传,并设定价格。用户在app store里付费下载后,ap 阅读全文
posted @ 2012-12-13 00:28 GreyWolf 阅读(536) 评论(0) 推荐(0)
摘要: 首先根据需要缴纳$99/299的费用加入成员计划。按照如下的不同角色和操作界面即可完成代码的调试和发布概括起来:申请人Team Agent角色加开发管理员和申请软件的发布Team Admin开发管理员可以自己调试和加人过程涉及:证书,apple ID,机器ID等系列的步骤,比较麻烦,简便的方法1、将iphone/ipad连接到USB接口2、在Xcode的Window/Oragnize窗口中,在看到的设备上让他自动Provisoing,只要输入在apple上注册的账号和密码,让这个自动连接产生相关的信息即可一直到整个软件的发布,整个的过程基本都走了一遍,至于具体的开发,就看你的创意了,你可以自由 阅读全文
posted @ 2012-12-13 00:25 GreyWolf 阅读(226) 评论(0) 推荐(0)
摘要: 程序开发中根据要使用各种各样的数据,如配制、文件系统、数据库等,iOS对这个有很好的支持PreferencesIf you’re going to create a program that has built-in preferences, you should do so using the Utility Application template.To create the special cartouched list used by preferences, you must create a table view controller with the special UITabl 阅读全文
posted @ 2012-12-13 00:19 GreyWolf 阅读(239) 评论(0) 推荐(0)
摘要: 了解和熟悉这个对后续的开发很重要。关于这个的参考资料■ View Controller Programming Guide for iOSFor information about structuring and managing your application’s user interfacehttp://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ViewControllerPGforiPhoneOS.pdf■ View Programming Guide for iOS.For 阅读全文
posted @ 2012-12-13 00:15 GreyWolf 阅读(150) 评论(0) 推荐(0)
摘要: 开发工具使用Mac的安装盘或从apple站点下载Xcode开发代码使用扩展名的分类application delegate需要处理的内容ƒAt launch time, it must create an application’s windows and display them to the user.l It must initialize your data.l It must respond to “quit” requests.l It must handle low-memory warnings.建立的各种项目TemplateØA Window-Based Appli 阅读全文
posted @ 2012-12-13 00:14 GreyWolf 阅读(178) 评论(0) 推荐(0)
摘要: Cocoa中常用的类NSStringNSMutableString赋值NSString *myString = @"some string";NSString *myString = [NSStringstringWithFormat:@"object = %@",someObject];转换NSString *upper = [myStringuppercaseString];intintString = [myStringintValue];去内容NSString *trimmed = [myString string ByTrimmingChara 阅读全文
posted @ 2012-12-13 00:13 GreyWolf 阅读(148) 评论(0) 推荐(0)
摘要: 系统规格iPhone的规格Each is a 4.7- or 4.8-ounce computing device. Each contains a 620 MHz ARM CPU that has been underclocked to improve battery performance and reduce heat. The iPhone and iPhone 3G each include 128 MB of dynamic RAM (DRAM) and from 4 to 16 GB of Flash memory. The 3GS received an upgrade to 阅读全文
posted @ 2012-12-13 00:11 GreyWolf 阅读(142) 评论(0) 推荐(0)
摘要: 历史NeXSTEPMany years ago Cocoa was known as NeXTSTEP . NeXT Computer developed and released version 1.0 ofNeXTSTEP in September of 1989, and versions 2.0 and 3.0 followed not far behind (in 1990 and 1992,respectively). In this early phase, NEXTSTEP was more than an application environment; the term r 阅读全文
posted @ 2012-12-13 00:07 GreyWolf 阅读(157) 评论(0) 推荐(0)
摘要: Paths中的几个重要元素Pointsvoid CGContextMoveToPoint ( CGContextRef c, CGFloat x, CGFloat y);指定一个点成为current pointQuartz会跟踪current point一般执行完一个相关函数后,current point都会相应的改变.Lines相关的几个函数void CGContextAddLineToPoint ( CGContextRef c, CGFloat x, CGFloat y);创建一条直线,从current point到 (x,y)然后current point会变成(x,y)void CG 阅读全文
posted @ 2012-12-13 00:04 GreyWolf 阅读(366) 评论(0) 推荐(0)