#swif

swift开发笔记22_HonoluluArt

MapKit if条件1,条件2,条件3 {} switchdiscipline{  case条件1,条件2 :} do{      try<#throwingexpression#&...

swift开发笔记21

letframe=CGRect(x:xOffset[column],y:yOffset[column],width:columnWidth,height:height)letinsetFrame=frame.insetBy(dx:cellPadding,dy:cellPadding) attributes.f...
代码星球 ·2020-09-12

swift开发笔记16

 、、监听系统通知(APP进入后台)NSNotification.Name.UIApplicationDidEnterBackground、、deinit==de+init,相当于oc中的delloc  deinit{  NotificationCenter.defau...
代码星球 ·2020-09-12

swift sample code

Multi-linestringliteralclosingdelimitermustbeginonanewline"""["kdkd","keke"]"""...
代码星球 ·2020-09-11

30-swift-projects-in-30-days开发笔记

30-swift-projects-in-30-days29KolodaViewisaclassdesignedtosimplifytheimplementationofTinderlikecardsoniOS.ItaddsconvenientfunctionalitysuchasaUITableView-styled...

swift做服务器端开发

https://www.perfect.org/docs/index_zh_CN.html,swift做服务器端开发 上传到appStore的ipa苹果会自动加一层防护壳,如果想要反编译从appStore下载的ipa包,必须要先要进行一次脱壳操作。...
代码星球 ·2020-09-11

swift开发笔记31

self.tableView.scrollToRow(at:IndexPath.init(row:0,section:0),at:.top,animated:true)self.tb.scrollRectToVisible(CGRect(x:0,y:48,width:self.tb.frame.size.width,h...
代码星球 ·2020-09-11

swift 开发笔记 30

self.performSegue(withIdentifier:"ShowResults",sender:self)  guardletcontroller=segue.destinationas?TagsColorsViewControllerelse{   &nb...
代码星球 ·2020-09-11

swift开发笔记28 CoreML

{ funcdetectScene(image:CIImage){  answerLabel.text="detectingscene..."     //LoadtheMLmodelthroughitsgeneratedclass&nbs...
代码星球 ·2020-09-11

swift开发笔记28 SlideBarMenu

、、extension给原类,添加属性和方法extensionSelector{  staticlettoMenu=#selector(SWRevealViewController.revealToggle(_:))  staticlettoExtra=#selector(SWR...

swift开发笔记27 UserNotifications

 UNNotificationActionUNNotificationCategory UNCalendarNotificationTrigger UNMutableNotificationContentUNNotificationAttachmentUNNotificationReque...

swift开发笔记26 3D Touch

scale3DTouch//定义一个枚举类型enumShortcut:String{  caseopenBlue="OpenBlue"}//APP正在运行时,下面的方法会响应3DTouch操作funcapplication(_application:UIApplication,performActi...

swift selector写法

  #selector(xiuGaiNote(_:))    @objcfuncxiuGaiNote(_note:Notification)->Void{    letdic=note.userInfo  &nbs...
代码星球 ·2020-09-11

swift menuviewcontroller没有显示出来

//  funccanBecomeFirstResponder()->Bool{//    returntrue//  }  overridevarcanBecomeFirstResponder:Bool{&nbs...

swift开发笔记19

 、、   [UIApplicationsharedApplication].networkActivityIndicatorVisible=YES; 、、Set()union()...
代码星球 ·2020-09-11
首页上一页12345下一页尾页