Magic Studio

专心做有逼格的APP!

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页

2013年10月5日 #

iOS play video

摘要: iOS: How to use MPMoviePlayerControllerup vote6down votefavorite3I've created a blank project (iOS) and put this in my viewDidLoad:NSString*moviePath =[[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4v"];MPMoviePlayerViewController*playerController =[[MPMoviePlayerV 阅读全文

posted @ 2013-10-05 22:46 Mr 布鲁斯 阅读(926) 评论(0) 推荐(0) 编辑

Http Live Streaming 实现iphone在线播放视频[转]

摘要: http://hi.baidu.com/lphack/item/83865611c5f82c8988a956df本人新手,难免会出错,请各位指点!最近要做一个项目,是通过iphone来播放工厂摄像头录制的视频达到监控设备的目的,要求可以实现点播和直播对于视频流的操做其实一无所知,但是老同事给我开了一个头,给了我几篇文章,关于苹果http live streaming 流媒体技术的,于是我就从这里入手了。先讲讲前提基础:我的系统是:雪豹需要实现目标是: 把获得的ts格式的视频,切片成一系列ts文件,在iphone上实现在线播放好开始了========================完美... 阅读全文

posted @ 2013-10-05 21:19 Mr 布鲁斯 阅读(1074) 评论(0) 推荐(0) 编辑

UIWebView分页显示

摘要: 問題:使用iOS UIWebView時,載入本地html檔案,但是該檔案太大,結果螢幕畫面形成一長條型顯示,雖然用滾動畫面可以看見整個html檔案,但是滑來滑去,不好用。目標:用UIWebView載入html檔時,將html檔案切成一頁一頁,向左滑動螢幕可看下一頁,向右滑動螢幕可看下一頁。做法:我用的是Xcode V4.2 Build 4C199, MAC OS X 10.6 (10K549)(1) 用File/New/New Project產生一個新專案, 選iOS/Application/Single View Application。下一個螢幕,Product Name:UIWebVie 阅读全文

posted @ 2013-10-05 11:11 Mr 布鲁斯 阅读(658) 评论(0) 推荐(0) 编辑

2013年9月27日 #

ios7适配--uitableviewcell选中效果

摘要: ios7 UITableViewCell selectionStyle won't go back to blueup vote6down votefavorite2Xcode 5.0, iOS 7 and updating an existing app.UITableViewselected row is now gray, not blue.From what I've read they changed the defaultselectionStyleto gray. But "Blue" is still an option in IB andU 阅读全文

posted @ 2013-09-27 10:14 Mr 布鲁斯 阅读(640) 评论(0) 推荐(0) 编辑

2013年9月26日 #

ios7 设置status bar风格

摘要: How to change status bar style during launch on iOS 7up vote4down votefavoriteWhen I launch my app, it shows the launch image and a black status bar. How can I change it so the status bar is light during launch? I have set the status bar appearance to light in my AppDelegate didFinishLoading method, 阅读全文

posted @ 2013-09-26 16:18 Mr 布鲁斯 阅读(295) 评论(0) 推荐(0) 编辑

2013年9月25日 #

ios7适配--隐藏status bar

摘要: //viewDidloadif ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {// iOS 7[self prefersStatusBarHidden];[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];} else {// iOS 6[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnima 阅读全文

posted @ 2013-09-25 21:26 Mr 布鲁斯 阅读(278) 评论(0) 推荐(0) 编辑

ios7适配--navgationbar遮住下面view的处理

摘要: 3down votefavoriteHave you guys stumbled up on this issue ?Basically in iOS 7 Navigation Controller is rendered over the sub-view I navigated to.In iOS 6 view I navigate to is enclosed between navigation bar and footer. In iOS 7 it looks like sub-view is rendered full-screen, under navigation bar an 阅读全文

posted @ 2013-09-25 14:27 Mr 布鲁斯 阅读(1426) 评论(0) 推荐(0) 编辑

2013年9月24日 #

UIView的alpha、hidden和opaque属性之间的关系和区别[转]

摘要: UIView的alpha、hidden和opaque属性之间的关系和区别作者:wangzz原文地址:http://blog.csdn.net/wzzvictory/article/details/10076323转载请注明出处UIView的这几个属性让我困惑了好一阵子,通过翻看官方文档和stackoverflow等网上资源,对它们有了一定理解,现分享出来。如理解有误,还请大家指出。一、alpha液晶显示器是由一个个的像素点组成的,每个像素点都可以显示一个由RGBA颜色空间组成的一种色值。其中的A就表示透明度alpha,UIView中alpha是一个浮点值,取值范围0~1.0,表示从完全透明到完 阅读全文

posted @ 2013-09-24 10:29 Mr 布鲁斯 阅读(345) 评论(0) 推荐(0) 编辑

2013年9月20日 #

Alternative to iPhone device ID (UDID)

摘要: Alternative to iPhone device ID (UDID) [duplicate]up vote10down votefavorite3Possible Duplicate:UIDevice uniqueIdentifier Deprecated - What To Do Now?Even if Apple was not at Barcelone's MWC (mobile world congress), there was the certitude that getting the deviceID will be deprecated in further 阅读全文

posted @ 2013-09-20 17:46 Mr 布鲁斯 阅读(529) 评论(0) 推荐(0) 编辑

ios屏幕旋转

摘要: 屏幕旋转// ios 5、6都有这个方法- (BOOL)shouldAutorotate{ returnYES;}//ios6有效- (NSUInteger)supportedInterfaceOrientations{ returnUIInterfaceOrientationMaskLandscape;}//ios5有效- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{ return ((toInterfaceOrientation==UIInter... 阅读全文

posted @ 2013-09-20 11:29 Mr 布鲁斯 阅读(224) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 42 下一页

导航