Welcome to Swift

Welcome to Swift

Swift is a new object-oriented programming language for iOS and OS X development. Swift is modern, powerful, and easy to use.

  • let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25]
  • for (name, age) in people {
  • println("(name) is (age) years old.")
  • }

 


The Swift Programming Language

The complete guide and reference to the Swift programming language.

  • Take an interactive tour of language features that make app development easier, faster, and more reliable.

  • Learn Swift concepts, principles, and syntax through comprehensive descriptions and code examples.

  • Dive into the details of the language with a thorough discussion of its behavior, syntax, and grammar.

Using Swift with Cocoa and Objective-C

Tools and strategies for integrating Swift into the Cocoa app development process.

  • Learn how to interact with Cocoa frameworks in a Swift environment.

  • Take advantage of Swift language features to build on Objective-C APIs, and improve the way you write Cocoa apps.

  • Create a mixed-language app using Swift and Objective-C.

  • Explore strategies to migrate your app to Swift.

运行在SAE上的WordPress修改Storage地址的方法

找到wp-includes/functions.php在大约第1714行找到

1 $url 'http://' $_SERVER['HTTP_APPNAME'] . '-'.SAE_STORAGE.'.stor.sinaapp.com'.SAE_DIR;

‘.stor.sinaapp.com’替换为‘.stor.vipsinaapp.com’
保存,覆盖。
只是这样子还不行,原来的图片还是使用*.stor.sinaapp.com的地址,我们需要进去PHPMYADMIN,执行

1 UPDATE wp_posts SET post_content = replace(post_content, 'http://***.stor.sinaapp.com','http://***.stor.vipsinaapp.com')

其中:’http://***.stor.sinaapp.com’替换成你原来的Storage地址,’http://***.stor.vipsinaapp.com’替换成现在的Storage地址。
然后看看自己主题以及插件中是否调用了原来的Storage地址,修改过来即可。

2014 年 8 月
 123
45678910
11121314151617
18192021222324
25262728293031

广告

分类

近期评论

标签

历史上的今天

    历史上的今天没有存档

归档