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

Category: Swift

Swift, a new development language released by Apple at WWDC (Apple Developer Conference) in 2014, can run on Mac OS and iOS platforms together with Objective-C* to build applications based on the Apple platform. Swift is an easy-to-learn and easy-to-use programming language, and it is also the first system programming language with the same expressiveness and fun as a scripting language. Swift is designed with safety as the starting point to avoid various common programming error categories.

How to add a map view of Google Maps for iOS in SWIFT

I tried to add a marker on Google Maps, but the application crashed when the addMarker() function was called. The exception details are as follows,

The catched exception’GMSThreadException’ t

October 10, 2021By Simo Swift Add, Google, How to, IOS, Map, SDK, SWIFT, Tag, viewLeave a Comment

SWIFT: OPTIONAL’s useless default?

I am creating a function like this:

func foo(bar: UInt? = 0) { let doSomething = someOtherFunc(bar!)
) If I pass a zero value to foo(), I want to use the default value 0 when opening it, not

October 10, 2021By Simo Swift default, Optional, SWIFT, uselessLeave a Comment

SWIFT3 – Error via the Cocoapods installation field

I encountered this strange error when installing realm on xcode 8, cocoa pods version cocoapods-1.2.0

The error is –

Installing Realm (2.4.3)

[!] /bin/bash -c
set -e
sh build.sh

October 10, 2021By Simo Swift cocoapods, error, Field, installation, pass, SWIFT, Swift3, timeLeave a Comment

SWIFT – the key to the value of the value of the dictionary?

I have a dictionary in Swift as follows:

[
0: “82” ,
1: “12”,
2: “3”,
3: “42”
// Etc.
] And suppose I want to swap the keys to the values ​​82 and 3, so the new dictionary looks like th

October 10, 2021By Simo Swift Dictionary, exchange, key, Medium, SWIFT, valueLeave a Comment

Can you force a Typealias in SWIFT?

I am trying to enforce a simple type supported by Int, which will not be confused with other Ints.

Assuming you have the following typealiases:

typealias EnemyId = Int
typealias WeaponI

October 10, 2021By Simo Swift Of the TYPEALIASLeave a Comment

Swift protocol with associated type (type lookup is not clear)

I need to create a generic function in the protocol and use the default implementation in the extension. It should use item as an enumeration: RawRepresentable, where RawValue == String always. I t

October 10, 2021By Simo Swift association, Has, lookup, not clear, protocol, SWIFT, typeLeave a Comment

SWIFT – formula for selecting each pixel in the bitmap

I’m looking for an algorithm, I’m currently programming fast but pseudo code or any similar “C series” syntax will work.

Imagine A large list of values, such as pixels in a bitmap. You want t

October 10, 2021By Simo Swift bitmap, for, Formula, Medium, pixel, repetition, selection, SWIFTLeave a Comment

SWIFT – Reuse Safety Bookmarks

In my application, I want to access a local file directory with bookmarks of the security range.
As described in the App Sandbox Design Guide, I set the user-specified folder (NSOpenPanel) is stor

October 10, 2021By Simo Swift bookmark, Range, reuse, safe, SWIFTLeave a Comment

SWIFT – Compare NSDATE

I want to compare two NSDates, but each date is displayed as “earlier” today. Any ideas?

let compareResult = self.todaysDate.compare(self.date)
if compareResult == NSComparisonResult.OrderedD

October 10, 2021By Simo Swift comparison, nsdate, SWIFTLeave a Comment

Why is my Haskell code like SWIFT and C?

This is a very simple Haskell code to find all Pythagorean integers from 1 to 200 that satisfy the Pythagorean theorem X ^ 2 = Y ^ 2 Z ^ 2

Haskell:

let l = [1..200]
let pythagoras = [x

October 10, 2021By Simo Swift code, compared to this, Haskell, my, slow, SWIFT, whyLeave a Comment

Posts navigation

Page 1 Page 2 Page 3 Page 4 … Page 9
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