09 2014 档案

摘要:let manager = AFHTTPRequestOperationManager() let url = "http://api.openweathermap.org/data/2.5/weather" let params = ["lat":latitude, "lon":... 阅读全文

posted @ 2014-09-30 20:53 SCaptain 阅读(2098) 评论(0) 推荐(0)

摘要:1、获取locationManagerlet locationManager: CLLocationManager = CLLocationManager()2、设置locationManager的精度locationManager.desiredAccuracy = kCLLocationAccu... 阅读全文

posted @ 2014-09-30 20:37 SCaptain 阅读(240) 评论(0) 推荐(0)

摘要:Layout SupportThis protocol is implemented by the UIViewController properties topLayoutGuide and bottomLayoutGuide to support using Auto Layout with a... 阅读全文

posted @ 2014-09-26 11:05 SCaptain 阅读(307) 评论(0) 推荐(0)

摘要:跳转到第一章第一章用a的href,#+页面内id即可不错,我已经用到我的随笔里去了效果如下~ 阅读全文

posted @ 2014-09-19 20:52 SCaptain 阅读(2306) 评论(0) 推荐(0)

摘要:|View |Creating and Configuring View Objects |Creating and Managing a View Hierarchy |Adjusting the Size and Position of Views at Runtime |Defining a ... 阅读全文

posted @ 2014-09-19 16:47 SCaptain 阅读(574) 评论(0) 推荐(0)

摘要:View Controller PG(Programming Guide) 看过一遍View PG 正在看Drawing and Printing PGQuartz 2D PG更高级的custom View(这些内容需要将View的内容吃透了再去接触,要不然会一团糟)1.OpenGL ES Prog... 阅读全文

posted @ 2014-09-19 15:43 SCaptain 阅读(441) 评论(0) 推荐(0)

摘要:是在万能的stackOverflow上找到的答案,留下了,原地址:http://stackoverflow.com/questions/6496441/creating-a-uiimage-from-a-uicolor-to-use-as-a-background-image-for-uibut... 阅读全文

posted @ 2014-09-16 16:41 SCaptain 阅读(1364) 评论(0) 推荐(0)

摘要:网上的一些方法在我这行不通,比如:UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent1、Set the UIViewControllerBasedStatusBarAppearance to... 阅读全文

posted @ 2014-09-16 16:02 SCaptain 阅读(2976) 评论(1) 推荐(0)

摘要:在iOS开发的过程中,控件的大小和位置如何去安排是一个现在看来比较麻烦的事情,需要从上到下的通知和从下到上的调整。而这部分在整个开发过程中是比较重要的,但是却经常没有被掌握。如果将这部分掌握,不管界面的大小怎么变,View都可以通过resize去调整自己的位置和大小,所以在看完View Cont... 阅读全文

posted @ 2014-09-15 14:06 SCaptain 阅读(119) 评论(0) 推荐(0)

摘要:TableView这个控件在iOS的开发中非常的常见,他可以较好的展示一个层级结构。这里主要介绍,在点击某个条目的时候,如何进行跳转的下一个界面。以下是官方的关于这个跳转如何去实现,和如何去传递数据的过程。 Storyboards make it easy to pass data from ... 阅读全文

posted @ 2014-09-11 14:38 SCaptain 阅读(1617) 评论(0) 推荐(0)

摘要:button.layer.cornerRadius = 10 // 这个值根据你想要的效果可以更改button.clipsToBounds = true这种方法不止可以设置按钮,UIView应该都可以设置,ImageView我试过ok,其他的UIKit用到了再试 阅读全文

posted @ 2014-09-03 15:27 SCaptain 阅读(461) 评论(0) 推荐(0)

摘要:导入AudioToolbox.framework包在swift文件中import AudioToolboxAudioServicesPlaySystemSound(SystemSoundID.convertFromIntegerLiteral(UInt32(kSystemSoundID_Vibrat... 阅读全文

posted @ 2014-09-02 14:55 SCaptain 阅读(525) 评论(0) 推荐(0)

摘要:在iOS7系统的Mail App中TableViewCell的一个功能让我们做TableView的比较羡慕,就是滑动cell,右边出现了两个按钮,如下:网上在github上有很多大牛用custom tableViewCell的方法实现了这个效果,甚至更强,比如这两位:https://github.c... 阅读全文

posted @ 2014-09-01 21:55 SCaptain 阅读(1544) 评论(0) 推荐(0)

摘要:今天在看官方的TableView Guide,突然想起来最近写的一个代码中实现tableViewCell复用的时候有点问题:var cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: identi... 阅读全文

posted @ 2014-09-01 10:31 SCaptain 阅读(1057) 评论(0) 推荐(0)

导航