因此,在C++與Objective-C語言中也能夠使用(雖然,實際上還是得看編譯工具是否支援)。 簡單的Block範例如下: //宣告一個block ^(int x, int y){ NSLog(" ...
確定! 回上一頁