<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_我和未来有约会</title><subtitle type="text">“不要以自己懂的少为借口，每天都要总结一下所学的东西”</subtitle><id>http://feed.cnblogs.com/blog/u/24081/rss</id><updated>2012-05-31T10:21:46Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/24081/rss"/><entry><id>http://www.cnblogs.com/nasa/archive/2012/05/31/2528022.html</id><title type="text">社交媒体营销的15条建议</title><summary type="text">社交媒体营销的15条建议当你发出任何一条Facebook信息，tweet，帖子，Email 时，问你自己：这个信息对接受者而言有价值吗，还是会让他们觉得很烦？如果你是顾客，你愿意接受这条信息吗？周末是开展社交媒体营销的最佳时刻。不知道更新什么内容？在本子上写出你的顾客喜欢的东西，不要滔滔不绝的讨论你们公司的产品，服务，而是去发掘客户兴趣所在。换位思考一下，作为顾客，什么内容能让你去点击那个like按钮。写出至少十个能够让顾客like的内容。观察记录你的顾客谈论的话题，包括那些看上去与你公司毫不相关的话题。基于这些记录，在你的社交媒体上展开讨论。你的公司是否有工作可以与顾客协作完成？比如新产品的</summary><published>2012-05-31T02:24:00Z</published><updated>2012-05-31T02:24:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2012/05/31/2528022.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2012/05/31/2528022.html"/><content type="html">&lt;p class="p1"&gt;&lt;strong&gt;社交媒体营销的15条建议&lt;/strong&gt;&lt;/p&gt;&lt;ol class="ol1"&gt;&lt;li class="li2"&gt;当你发出任何一条Facebook信息，tweet，帖子，Email 时，问你自己：&lt;/li&gt;&lt;ul class="ul1"&gt;&lt;li class="li3"&gt;这个信息对接受者而言有价值吗，还是会让他们觉得很烦？&lt;/li&gt;&lt;li class="li3"&gt;如果你是顾客，你愿意接受这条信息吗？&lt;/li&gt;&lt;/ul&gt;&lt;li class="li2"&gt;周末是开展社交媒体营销的最佳时刻。&lt;/li&gt;&lt;li class="li2"&gt;不知道更新什么内容？在本子上写出你的顾客喜欢的东西，不要滔滔不绝的讨论你们公司的产品，服务，而是去发掘客户兴趣所在。换位思考一下，作为顾客，什么内容能让你去点击那个like按钮。写出至少十个能够让顾客like的内容。&lt;/li&gt;&lt;li class="li2"&gt;观察记录你的顾客谈论的话题，包括那些看上去与你公司毫不相关的话题。基于这些记录，在你的社交媒体上展开讨论。&lt;/li&gt;&lt;li class="li2"&gt;你的公司是否有工作可以与顾客协作完成？比如新产品的命名，新logo的设计，最受欢迎产品评选等等。&lt;/li&gt;&lt;li class="li2"&gt;在内容更新到社交媒体上之前，可以发给你的朋友看看，他们觉得这个信息有用吗，还是觉得你又在打广告或者吹嘘自己公司如何如何。&lt;/li&gt;&lt;li class="li2"&gt;欧美客户对优惠码的喜爱程度超乎你的想象。如果你的产品能够提供折扣，不妨试试。&lt;/li&gt;&lt;li class="li2"&gt;分享你的公司的创建历程，甚至可以是发展过程中碰到的问题等等，能够提升贵公司在顾客心中的可信度。可信度是中国公司的一个重大问题，想办法让你的顾客/潜在顾客觉得你是可靠的。&lt;/li&gt;&lt;li class="li2"&gt;看看你的公司还有没有其他值得说的地方，比如办公室照片，生产照片，员工故事，度假照片等等，自己斟酌。&lt;/li&gt;&lt;li class="li2"&gt;分享公司新近发生的事，比如新的合作，订单量创历史新高，发货速度加快等等。&lt;/li&gt;&lt;li class="li2"&gt;发掘产品特质，同竞争对手相比，你们的产品有何独特优势，是质量好还是价格低，还是售后好？分享给公众。&lt;/li&gt;&lt;li class="li2"&gt;定位你的死忠客户。只要你的产品不是烂的可怕，总会有人喜欢你的产品，了解他们在哪里活动，然后看可不可以给他们提供额外优惠，鼓励他们向朋友或者在社区分享他的购物经历，如果你的客人里面有意见领袖，千万不要放过他们，可以跟他们商议比较深度的合作。&lt;/li&gt;&lt;li class="li2"&gt;鼓励顾客分享他们的购物经历，提供给他们分享的工具，提供给他们优惠码，等等。&lt;/li&gt;&lt;li class="li2"&gt;给顾客惊喜。可以是他们生日的一句祝福，包裹里面额外的小礼品，一张给老顾客的明信片等等，在社交媒体的王国里，口口相传是最佳的传播渠道，心情愉快，觉得自己被关心重视的顾客更倾向于向朋友推荐你的产品。&lt;/li&gt;&lt;li class="li2"&gt;创建独特且一致的社交语言风格，是风趣幽默还是严谨扎实？ 取决于你们的产品性质。尽量创建令人印象深刻的社交语言。 全书令我印象最深刻的部分是，当你有太多顾客在你的Facebook上留言的时候，优先回答那些朋友更多，影响力更大的顾客。可见这个世界上没有绝对公平的地方，即便在社交媒体上，人也会被划分为三六九等，这很残酷但却真实。&lt;/li&gt;&lt;/ol&gt;&lt;p class="p4"&gt;需要注意的地方是，根据我的实践经验，优先处理重要顾客并不意味着对其他顾客置之不理，你可以告诉那些不重要的客户，我们正在研究，晚点再回复你。如果完全视而不见，会极大的激怒客户，因为他们能够看到你在回答别人的问题，而把他们当做空气。没有人喜欢被歧视，尽管歧视在这个世界上无所不在。&lt;/p&gt;&lt;p class="p4"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="p4"&gt;&lt;span&gt;作者博客：&lt;/span&gt;&lt;a href="http://www.wangyufei.org/blog/" target="_blank"&gt;http://www.wangyufei.org/blog/&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/2528022.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2012/05/31/2528022.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2011/05/16/peugeot408.html</id><title type="text">ios作品－东风标致408</title><summary type="text">下载地址：http://t.cn/hdnyB2</summary><published>2011-05-16T03:19:00Z</published><updated>2011-05-16T03:19:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2011/05/16/peugeot408.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2011/05/16/peugeot408.html"/><content type="html">下载地址：&lt;a href="http://t.cn/hdnyB2"&gt;http://t.cn/hdnyB2&lt;/a&gt;&lt;p&gt;&lt;img alt="Peugeot 408" height="2085" width="440" src="http://ww1.sinaimg.cn/bmiddle/52453487jw1dh6kcxgfnsj.jpg" /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/2047449.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2011/05/16/peugeot408.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-2.html</id><title type="text">ios开发基础知识 － 2</title><summary type="text">移动物体参考：Field Key PathDescriptionrotation.xThe rotation, in radians, in the x axis.rotation.yThe rotation, in radians, in the y axis.rotation.zThe rotation, in radians, in the z axis.rotationThe rotation, in radians, in the z axis. This is identical to setting the rotation.z field.scale.xScale factor</summary><published>2011-01-13T01:58:00Z</published><updated>2011-01-13T01:58:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-2.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-2.html"/><content type="html">&lt;p&gt;&lt;strong&gt;移动物体&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;CABasicAnimation *theAnimation;    &lt;br/&gt;theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.x"];&lt;br/&gt;theAnimation.duration=1;&lt;br/&gt;theAnimation.repeatCount=2;&lt;br/&gt;theAnimation.autoreverses=YES;&lt;br/&gt;theAnimation.fromValue=[NSNumber numberWithFloat:0];&lt;br/&gt;theAnimation.toValue=[NSNumber numberWithFloat:-60];&lt;br/&gt;[view.layer addAnimation:theAnimation forKey:@"animateLayer"]; &lt;br/&gt;&lt;/div&gt;&lt;p&gt;参考：&lt;/p&gt;&lt;p&gt;&lt;style&gt;&lt;!--p.p1 {margin: 0.0px 0.0px 4.0px 0.0px; font: 13.0px 'Lucida Grande'; color: #ffffff}p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Courier; color: #666666}p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Lucida Grande'}span.s1 {font: 13.0px Courier; color: #666666}table.t1 {margin: 0.0px 0.0px 52.0px 0.0px; border-style: solid; border-width: 0.0px 0.0px 0.0px 1.0px; border-color: transparent transparent transparent #9bb3cd}td.td1 {width: 104.0px; background-color: #93a5bb; border-style: solid; border-width: 0.0px 1.0px 1.0px 0.0px; border-color: transparent #9bb3cd #9bb3cd transparent; padding: 4.0px 8.0px 4.0px 8.0px}td.td2 {width: 555.0px; background-color: #93a5bb; border-style: solid; border-width: 0.0px 1.0px 1.0px 0.0px; border-color: transparent #9bb3cd #9bb3cd transparent; padding: 4.0px 8.0px 4.0px 8.0px}td.td3 {width: 104.0px; border-style: solid; border-width: 0.0px 1.0px 1.0px 0.0px; border-color: transparent #9bb3cd #9bb3cd transparent; padding: 8.0px 8.0px 8.0px 8.0px}td.td4 {width: 555.0px; border-style: solid; border-width: 0.0px 1.0px 1.0px 0.0px; border-color: transparent #9bb3cd #9bb3cd transparent; padding: 8.0px 8.0px 8.0px 8.0px}--&gt;&lt;/style&gt;&lt;/p&gt;&lt;table cellspacing="0" cellpadding="0" class="t1"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign="middle" class="td1"&gt;&lt;p class="p1"&gt;&lt;b&gt;Field Key Path&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td2"&gt;&lt;p class="p1"&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;rotation.x&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;The rotation, in radians, in the x axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;rotation.y&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;The rotation, in radians, in the y axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;rotation.z&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;The rotation, in radians, in the z axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;rotation&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;The rotation, in radians, in the z axis. This is identical to setting the &lt;span class="s1"&gt;rotation.z&lt;/span&gt; field.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;scale.x&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Scale factor for the x axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;scale.y&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Scale factor for the y axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;scale.z&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Scale factor for the z axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;scale&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Average of all three scale factors.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;translation.x&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Translate in the x axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;translation.y&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Translate in the y axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;translation.z&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Translate in the z axis.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign="middle" class="td3"&gt;&lt;p class="p2"&gt;translation&lt;/p&gt;&lt;/td&gt;&lt;td valign="middle" class="td4"&gt;&lt;p class="p3"&gt;Translate in the x and y axis. Value is an NSSize or CGSize.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;访问别的类的属性或者方法&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;myAppDelegate *appDelegate&lt;br/&gt;     = (myAppDelegate *)[[UIApplication sharedApplication] delegate];&lt;br/&gt;[[[appDelegate rootViewController] flipsideViewController] myMethod];&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;遍历子视图&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;for (UIImageView *anImage in [self.view subviews]) {&lt;br/&gt;     if (anImage.tag == 1) {&lt;br/&gt;          // do something&lt;br/&gt;     }&lt;br/&gt;}&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;播放音乐&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;// 设置音乐文件路径&lt;br/&gt;path = [[NSBundle mainBundle] pathForResource:@"mani" ofType:@"mp3"];&lt;br/&gt;&lt;br/&gt;// 判断是否可以访问这个文件&lt;br/&gt;if ([[NSFileManager defaultManager] fileExistsAtPath:path]) &lt;br/&gt;{    &lt;br/&gt;// 设置 player&lt;br/&gt;player = [[AVAudioPlayer alloc] initWithContentsOfURL:&lt;br/&gt;  [NSURL fileURLWithPath:path] error:nil];&lt;br/&gt;&lt;br/&gt;// 调节音量 (范围从0到1)&lt;br/&gt;player.volume = 0.4f;&lt;br/&gt;&lt;br/&gt;// 准备buffer，减少播放延时的时间      &lt;br/&gt;[player prepareToPlay];&lt;br/&gt;&lt;br/&gt;// 设置播放次数，0为播放一次，负数为循环播放&lt;br/&gt;[player setNumberOfLoops:-1];&lt;br/&gt;&lt;br/&gt;[player play];    &lt;br/&gt;&lt;br/&gt;}&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;随机数&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;rand()&lt;/p&gt;&lt;p&gt;例：&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;[_cloud02 setFrame:CGRectMake(-1024+rand()%600, -768+rand()%300, 2048, 1536)];&lt;br/&gt;[_cloud01 setFrame:CGRectMake(-1024+rand()%600, -768+rand()%300, 2048, 1536)];&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;Timer&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;每秒调用&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;[NSTimer scheduledTimerWithTimeInterval:1&lt;br/&gt;     target:self&lt;br/&gt;     selector:@selector(myMethod)&lt;br/&gt;     userInfo:nil&lt;br/&gt;     repeats:YES];&lt;br/&gt;&lt;br/&gt;&lt;/div&gt;&lt;p&gt;如果需要传递参数的话：&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;[NSTimer scheduledTimerWithTimeInterval:1     target:self&lt;br/&gt;     selector:@selector(myMethod)&lt;br/&gt;     userInfo:myObject&lt;br/&gt;     repeats:YES];&lt;br/&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;-(void)myMethod:(NSTimer*)timer {&lt;br/&gt;     // Now I can access all the properties and methods of myObject&lt;br/&gt;     [[timer userInfo] myObjectMethod];&lt;br/&gt;}&lt;br/&gt;&lt;/div&gt;&lt;p&gt;停止Timer&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;[myTimer invalidate]; &lt;br/&gt;myTimer = nil;&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;时间&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;CFAbsoluteTime myCurrentTime = CFAbsoluteTimeGetCurrent();&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;在模拟器里测试 App 的加速度感应功能&lt;/strong&gt;&lt;/p&gt;&lt;p&gt; 在模拟器里可以用鼠标点击模拟 iPhone 的触摸操作，但重力感应（比如用户倾斜机身来操控飞机/赛车）怎么模拟？按住 command 再按左右方向键，就能在电脑模拟器上测试加速度感应了。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1934128.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-2.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-1.html</id><title type="text">ios开发基础知识 － 1</title><summary type="text">输出command＋shift＋r显示图片app frame 大小浏览器控件在状态栏显示网络状态播放序列动画提示筐</summary><published>2011-01-13T01:58:00Z</published><updated>2011-01-13T01:58:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-1.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-1.html"/><content type="html">&lt;p&gt;&lt;strong&gt;输出&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;command＋shift＋r&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;NSLog(@"log: %@ ", myString);&amp;nbsp;&lt;br/&gt;NSLog(@"log: %f ", myFloat);&amp;nbsp;&lt;br/&gt;NSLog(@"log: %i ", myInt);&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;显示图片&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;CGRect myImageRect = CGRectMake(0.0f, 0.0f, 320.0f, 100.0f); &lt;br/&gt;UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect]; &lt;br/&gt;[myImage setImage:[UIImage imageNamed:@"myImage.png"]]; &lt;br/&gt;[self.view addSubview:myImage]; &lt;br/&gt;[myImage release];&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;app frame 大小&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;CGRect bounds = [[UIScreen mainScreen] bounds];&lt;br/&gt;CGRect frame = [UIScreen mainScreen].applicationFrame;&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;浏览器控件&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;CGRect webFrame = CGRectMake(0.0, 0.0, 320.0, 480.0);&lt;br/&gt;UIWebView *webView = [[UIWebView alloc] initWithFrame:webFrame];&lt;br/&gt;[webView setBackgroundColor:[UIColor clearColor]];&lt;br/&gt;NSString *urlAddress = @"http://nasa.cnblogs.com";&lt;br/&gt;NSURL *url = [NSURL URLWithString:urlAddress];&lt;br/&gt;NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];&lt;br/&gt;[webView loadRequest:requestObj];&lt;br/&gt;[self addSubview:webView];&lt;br/&gt;[webView release];&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;在状态栏显示网络状态&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;UIApplication* app = [UIApplication sharedApplication];&lt;br/&gt;app.networkActivityIndicatorVisible = YES; &lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;播放序列动画&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;NSArray *myImages = [NSArray arrayWithObjects:&lt;br/&gt; [UIImage imageNamed:@"myImage1.png"],&lt;br/&gt; [UIImage imageNamed:@"myImage2.png"],&lt;br/&gt; [UIImage imageNamed:@"myImage3.png"],&lt;br/&gt; [UIImage imageNamed:@"myImage4.gif"],&lt;br/&gt; nil];&lt;br/&gt;&lt;br/&gt;UIImageView *myAnimatedView = [UIImageView alloc];&lt;br/&gt;[myAnimatedView initWithFrame:[self bounds]];&lt;br/&gt;myAnimatedView.animationImages = myImages;&lt;br/&gt;myAnimatedView.animationDuration = 0.25; // 秒&lt;br/&gt;myAnimatedView.animationRepeatCount = 0; // 0 = 无限&lt;br/&gt;[myAnimatedView startAnimating];&lt;br/&gt;[self addSubview:myAnimatedView];&lt;br/&gt;[myAnimatedView release];&lt;br/&gt;&lt;/div&gt;&lt;hr /&gt;&lt;p&gt;&lt;strong&gt;提示筐&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"Alert!"          &lt;br/&gt;delegate:self cancelButtonTitle:@"OK" &lt;br/&gt;  otherButtonTitles:nil];&lt;br/&gt;[alert show];&lt;br/&gt;[alert release];&lt;br/&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1932450.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2011/01/13/ios-base-1.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2010/11/17/in-App-Purchases-disapper.html</id><title type="text">iTunes Contact无Manage Your In App Purchases链接</title><summary type="text">iTunes Contact如果无Manage Your In App Purchases链接，很大的可能是你没有完善个人的银行信息。</summary><published>2010-11-17T02:04:00Z</published><updated>2010-11-17T02:04:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2010/11/17/in-App-Purchases-disapper.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2010/11/17/in-App-Purchases-disapper.html"/><content type="html">&lt;p&gt;iTunes Contact如果无Manage Your In App Purchases链接，很大的可能是你没有完善个人的银行信息。&lt;/p&gt;&lt;p&gt;&lt;img src="http://pic002.cnblogs.com/images/2010/20522/2010111710030966.gif" alt="" /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1875575.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2010/11/17/in-App-Purchases-disapper.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2010/11/08/UINavigationBar-bg.html</id><title type="text">为UINavigationBar添加自定义背景</title><summary type="text">图示：</summary><published>2010-11-08T10:21:00Z</published><updated>2010-11-08T10:21:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2010/11/08/UINavigationBar-bg.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2010/11/08/UINavigationBar-bg.html"/><content type="html">&lt;p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;@implementation UINavigationBar (UINavigationBarCategory)&lt;br/&gt;- (void)drawRect:(CGRect)rect {&lt;br/&gt;//颜色填充&lt;br/&gt;//UIColor *color = [UIColor redColor];&lt;br/&gt;//CGContextRef context = UIGraphicsGetCurrentContext();&lt;br/&gt;//CGContextSetFillColor(context, CGColorGetComponents( [color CGColor]));&lt;br/&gt;//CGContextFillRect(context, rect);&lt;br/&gt;//self.tintColor = color;&lt;br/&gt;//图片填充&lt;br/&gt;UIColor *color = [UIColor colorWithRed:46.0f/255.0f green:87.0f/255.0f blue:29.0f/255.0f alpha:1.0f];&lt;br/&gt;UIImage *img= [UIImage imageNamed: @"bg.png"];&lt;br/&gt;[img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];&lt;br/&gt;self.tintColor = color;&lt;br/&gt;}&lt;br/&gt;@end&lt;br/&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;图示：&lt;img src="http://pic002.cnblogs.com/images/2010/20522/2010110818202475.png" alt="" /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1871988.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2010/11/08/UINavigationBar-bg.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2010/10/18/windows-phone-7-in-7.html</id><title type="text">windows phone 7 之 7分钟教学视频</title><summary type="text">Windows Phone 7 in 7: 什么是 Windows Phone 7Windows Phone 7 in 7: 开始 Windows Phone 7 之旅Windows Phone 7 in 7: Windows Phone 7 的架构Windows Phone 7 in 7: Silverlight 与 Windows Phone 7Windows Phone 7 in 7: XN...</summary><published>2010-10-18T03:40:00Z</published><updated>2010-10-18T03:40:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2010/10/18/windows-phone-7-in-7.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2010/10/18/windows-phone-7-in-7.html"/><content type="html">&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1805"&gt;Windows Phone 7 in 7: 什么是 Windows Phone 7&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1806"&gt;Windows Phone 7 in 7: 开始 Windows Phone 7 之旅&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1807"&gt;Windows Phone 7 in 7: Windows Phone 7 的架构&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1808"&gt;Windows Phone 7 in 7: Silverlight 与 Windows Phone 7&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1809"&gt;Windows Phone 7 in 7: XNA 与 Windows Phone 7&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1877"&gt;Windows Phone 7 in 7: Windows Phone 7 控件&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1878"&gt;Windows Phone 7 in 7: 链接 Web Services 服务&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1879"&gt;Windows Phone 7 in 7: Windows Phone 7 and Data&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1880"&gt;Windows Phone 7 in 7: 基本数据持久性&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1881"&gt;Windows Phone 7 in 7: 如何使用 Application Bar&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1882"&gt;Windows Phone 7 in 7: 如何使用 Web Browser&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1883"&gt;Windows Phone 7 in 7: 应用程序本地化&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1884"&gt;Windows Phone 7 in 7: 我在哪里？使用 Location Service&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1885"&gt;Windows Phone 7 in 7: 推送通知&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1886"&gt;Windows Phone 7 in 7: Windows Phone 7 的安全性&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1887"&gt;Windows Phone 7 in 7: 访问加速器&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1888"&gt;Windows Phone 7 in 7: 如何使用媒体元素&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1889"&gt;Windows Phone 7 in 7: 多点触摸&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1890"&gt;Windows Phone 7 in 7: SIP 形式布局&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.msdev.com/Directory/Description.aspx?eventId=1891"&gt;Windows Phone 7 in 7: 如何使用摄像头&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;整理自&lt;a href="http://www.msdev.com/"&gt;&amp;nbsp;http://www.msdev.com/&lt;/a&gt;&lt;/div&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1854152.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2010/10/18/windows-phone-7-in-7.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2010/10/14/1851505.html</id><title type="text">UITextView自动滚动的解决方案</title><summary type="text">思路：UIView加载完成3后，用NSTimer结合setContentOffset将UITextView向下滚动1像素。在滚动到底部的时候停止NSTimer。每当手动滚动UITextView前销毁NSTimer，滚动后重新创建NSTimer。</summary><published>2010-10-14T08:40:00Z</published><updated>2010-10-14T08:40:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2010/10/14/1851505.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2010/10/14/1851505.html"/><content type="html">&lt;p&gt;思路：UIView加载完成3后，用NSTimer结合setContentOffset将UITextView向下滚动1像素。在滚动到底部的时候停止NSTimer。每当手动滚动UITextView前销毁NSTimer，滚动后重新创建NSTimer。&lt;/p&gt;&lt;p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;NSTimer *timer;&lt;br/&gt;- (void)viewDidLoad {&lt;br/&gt;[self performSelector:@selector(resetText) withObject:nil afterDelay:3.0f];&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;- (void)resetText {&lt;br/&gt;[timer invalidate];&lt;br/&gt;timer = nil;&lt;br/&gt;timer = [NSTimer scheduledTimerWithTimeInterval: 0.06&lt;br/&gt; target: self&lt;br/&gt;   selector:@selector(onTick:)&lt;br/&gt;   userInfo: nil repeats:YES];&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {&lt;br/&gt;[timer invalidate];&lt;br/&gt;timer = nil;&lt;br/&gt;NSLog(@"scrollViewWillBeginDragging");&lt;br/&gt;[self performSelector:@selector(resetText) withObject:nil afterDelay:3.0f];&lt;br/&gt;}&lt;br/&gt;- (void) onTick:(NSTimer*)theTimer {&lt;br/&gt;CGPoint pt = [textView contentOffset];&lt;br/&gt;CGFloat n = pt.y + 1;&lt;br/&gt;[textView setContentOffset:CGPointMake(pt.x, n)];&lt;br/&gt;if (n&amp;gt; (textView.contentSize.height-textView.bounds.size.height)) {&lt;br/&gt;[theTimer invalidate];&lt;br/&gt;theTimer = nil;&lt;br/&gt;[timer invalidate];&lt;br/&gt;timer = nil;&lt;br/&gt;}&lt;br/&gt;}&lt;br/&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;最后 不要忘了实现&lt;/p&gt;&lt;p class="p1"&gt;UIScrollViewDelegate&lt;/p&gt;&lt;p class="p1"&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1851505.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2010/10/14/1851505.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2010/10/14/UIScrollView-touches.html</id><title type="text">UIScrollView无法响应touches的解决方法</title><summary type="text">自定义一个类继承UIScrollView，将touchesEnded事件发送出去。</summary><published>2010-10-14T08:29:00Z</published><updated>2010-10-14T08:29:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2010/10/14/UIScrollView-touches.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2010/10/14/UIScrollView-touches.html"/><content type="html">&lt;p&gt;自定义一个类继承UIScrollView，将touchesEnded事件发送出去。&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;#import &amp;lt;Foundation/Foundation.h&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;@interface PageScrollView : UIScrollView {&lt;br/&gt;&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;@end&lt;br/&gt;&lt;/div&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding:10px;"&gt;#import "PageScrollView.h"&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;@implementation PageScrollView&lt;br/&gt;- (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event {&lt;br/&gt;&lt;br/&gt;if (!self.dragging) {&lt;br/&gt;[self.nextResponder touchesEnded: touches withEvent:event]; &lt;br/&gt;}&lt;br/&gt;[super touchesEnded: touches withEvent: event];&lt;br/&gt;}&lt;br/&gt;&lt;br/&gt;@end&lt;br/&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1851478.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2010/10/14/UIScrollView-touches.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/nasa/archive/2010/09/21/thefwa-rememberreach.html</id><title type="text">TheFWA上的silverlight酷站</title><summary type="text">FWA全称Favourite Website Awards，是一个世界著名的互动多媒体网站收录平台，于2000年5月建立，目的是展示世界上最优秀、最前沿的网络媒体艺术设计作品。FWA一直被列为世界上最顶级、最具有精英意义的评价网络媒体交互艺术创作的权威机构，其收录的作品也不断成为备受追捧的创意科技标杆。FWA每日收录一个互动站点，月度年度评选最佳。凡是被收录的站点都会被光荣的授以FWA角标，这...</summary><published>2010-09-21T00:39:00Z</published><updated>2010-09-21T00:39:00Z</updated><author><name>王喆(nasa)</name><uri>http://www.cnblogs.com/nasa/</uri></author><link rel="alternate" href="http://www.cnblogs.com/nasa/archive/2010/09/21/thefwa-rememberreach.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/nasa/archive/2010/09/21/thefwa-rememberreach.html"/><content type="html">&lt;p&gt;FWA全称Favourite Website Awards，是一个世界著名的互动多媒体网站收录平台，于2000年5月建立，目的是展示世界上最优秀、最前沿的网络媒体艺术设计作品。FWA一直被列为世界上最顶级、最具有精英意义的评价网络媒体交互艺术创作的权威机构，其收录的作品也不断成为备受追捧的创意科技标杆。&lt;/p&gt;&lt;p&gt;FWA每日收录一个互动站点，月度年度评选最佳。凡是被收录的站点都会被光荣的授以FWA角标，这是国内外无数设计师与互动网站开发机构梦寐以求的标识。&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;网址：&lt;a href="http://www.rememberreach.com/" target="_blank"&gt;http://www.rememberreach.com/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;img src="http://pic002.cnblogs.com/images/2010/20522/2010092108325631.png" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://pic002.cnblogs.com/images/2010/20522/2010092108333337.png" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://pic002.cnblogs.com/images/2010/20522/2010092108341726.png" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://pic002.cnblogs.com/images/2010/20522/2010092108352177.png" alt="" /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/nasa/aggbug/1832232.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/nasa/archive/2010/09/21/thefwa-rememberreach.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry></feed>
