最終效果圖:MoreViewController.m//// MoreViewController.m// 20_帥哥no微博//// Created by beyond on 14-8-4.// Copyright (c) 2014年 com.beyond. All rights reserved.//#import "MoreViewController.h"@interface MoreViewController (){ // more.plist根是字典,有兩對Key
最終效果圖:BeyondViewController.m//// BeyondViewController.m// 20_帥哥no微博//// Created by beyond on 14-8-3.// Copyright (c) 2014年 com.beyond. All rights reserved.// 這個就是主控制器,分為兩塊,下面是Dock欄,上面是顯示不同的子控制器的view,子控制器最好用導航控制器封裝一下,這樣子控制器就內建了導航條,左按鈕,標題,右按鈕/*
BeyondAppDelegate.m//// BeyondAppDelegate.m// 20_帥哥no微博//// Created by beyond on 14-8-3.// Copyright (c) 2014年 com.beyond. All rights reserved.//#import "BeyondAppDelegate.h"#import "BeyondViewController.h"#import "NewFeatureViewController.h"#import
最終效果圖:OauthViewController.m//// OauthViewController.m// 20_帥哥no微博//// Created by beyond on 14-8-5.// Copyright (c) 2014年 com.beyond. All rights reserved.// 授權控制器,僅運行一次,取得了目前使用者的access_token和uid之後,存檔,切換視窗的主控制器#import "OauthViewController.h"@interface
最終效果圖:MainStoryBoard示意圖:BeyondViewController.h//// BeyondViewController.h// 19_抽屜效果_仿網易//// Created by beyond on 14-8-1.// Copyright (c) 2014年 com.beyond. All rights reserved.//#import <UIKit/UIKit.h>#import "LeftTableViewControllerDelegate.h"@
iOS開發,最鬱悶的莫過於程式毫無徵兆地就崩潰了,用bt命令打出調用棧,給出的是一堆系統EXC_BAD_ACCESS的資訊,根本沒辦法定位問題出現在哪裡。 首先說一下 EXC_BAD_ACCESS 這個錯誤,可以這麼說,90%的錯誤來源在於對一個已經釋放的對象進行release操作。舉一個簡單的例子來說明吧,首先看一段Java代碼:複製代碼 代碼如下:public class Test{ public static void main(String[] args){ String s =
1. XCode Perference General Double Click Navigation - 預設雙擊後會彈出新視窗(Use Seperate Window),這個和vc不一樣,主要這個視窗位置和大小通常讓人有不連貫感。改為Same as Click就和vc一樣 Text Editing Editing While editing Automatically trim trailing whitespace (去除尾部空白) Including whitespace-only