Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: SWIFT

SWIFT: If the Let statement is condition, you cannot use the array filter.

Suppose I have a set of usernames

let users = [“Hello”, “1212”, “12”, “Bob”, “Rob”] I want to get the first user whose name length is 2, so I filtered the array and got the first user

i

October 10, 2021By Simo Swift array, condition, filter, if, let, not, statement, SWIFT, usageLeave a Comment

How to get time (hours, minutes, seconds) in SWIFT 3?

How to determine the hours, minutes and seconds of the NSDate class in Swift 3?

In Swift 2:

let date = NSDate()
let calendar = NSCalendar.currentCalendar()let components = calendar.comp

October 10, 2021By Simo Swift Get, Hours, how to use, Minutes, nsdate, Seconds, SWIFT, timeLeave a Comment

Cocos2DX-JS and Swift projects

This article is a follow-up to the previous article on configuring swift-cocos2dx-js. If you are unclear, please check the previous article to teach you how to integrate the cocos2dx-js module in a

October 8, 2021By Simo Cocos2dx call, Cocos, Cocos2dx, DX, JS, mutual, project, SWIFTLeave a Comment

Mac – OS X status menu does not work in SWIFT

I tried to use swift to add a simple status menu to the status bar, but it won’t be displayed.

Works with Objective-c: AppDelegate.h

@interface AppDelegate: NSObject {
IBOutlet NSMenu

August 22, 2021By Simo Swift among, MacOS, menu, OSX, status, SWIFTLeave a Comment

SWIFT 3 GCD API Changed DISPATCH_ONCE

After the changes in language version 3, what is the new syntax for dispatch_once in Swift? The old version is as follows.

var token: dispatch_once_t = 0
func test() {
dispatch_once(&token)

August 22, 2021By Simo Swift API, change, Dispatch, GCD, SWIFTLeave a Comment

SWIFT 2 prints (), how to hide?

Before Swift 2, you can hide all your println() with such a helper

func println( object: Any) {
#if DEBUG
Swift.println(object)
#endif If you change to this

func print(object: Any) {
#

August 22, 2021By Simo Swift how to hide, print, SWIFTLeave a Comment

Sprite-Kit – How to use WhiteColor in SWIFT and Spritekit

I am running Yosemite and Xcode 6. I created a new project using the “Game” option SpriteKit and Swift.

Check in GameScene.swift In the overlay of didMoveToView(), I added the following line

August 22, 2021By Simo Swift How, Kit, Sprite, Spritekit, SWIFT, Used, WHITECOLORLeave a Comment

Apple-push-notifications – communicate with the APNS server via HTTP2 in SWIFT2

Does anyone know how to use Apple’s new APNS provider API introduced in the WWDC2015 conference? For my test, I used PushMeBaby (OpenSource Push server from github). But this small application will

August 22, 2021By Simo Macbook APNS, Apple, BACTP2, communication, HTTP, Notifications, Push, server, SWIFT, SWIFT2Leave a Comment

Posts navigation

Page 1 … Page 7 Page 8
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress