摘要:
http://stackoverflow.com/questions/7765691/how-do-i-capture-an-incoming-call-instead-of-being-booted-to-the-backgroundThe framwork has no (public) hooks for phone calls because they don't want apps to interfere with the behavior of iOS.http://stackoverflow.com/questions/3573859/create-a-mobile-a 阅读全文
摘要:
昨天在xcode中怎么也找不到打包的地方,今天解决了。http://stackoverflow.com/questions/3087089/xcode-build-and-archive-menu-item-disabled?1340766786Maybe your current build configiuration is "Simulator"? It needs to be device build to activate "Build and Archive" 阅读全文
摘要:
在模拟器上获取Location出现“server did not accept client registration”错误,查询得知这是一个bug(xcode 3.2.6)解决方法是在xxAppDelegate.m文件顶部(imports之后,@implementation之前)添加下面的Hack代码:代码出处:http://forums.bignerdranch.com/viewtopic.php?f=79&t=2069@implementation CLLocationManager (TemporaryHack)- (void)hackLocationFix{ CLLocati 阅读全文
摘要:
在Safari 中输入 smb://192.168.1.103, 接着以Windows7的用户身份登录,Finder的左边栏会自动显示绑定的Windows7系统的IP,点击进入后可以看到该系统下的共享文件夹 阅读全文
摘要:
The object graph is all the stuff in your applications model (the model part of view and controller). This stuff includes not only the objects, but also the relationships between the objects. Understanding what an object graph is and how it relates to your iOS application will make things like Core. 阅读全文
摘要:
-(UIView*)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ if(hideTableSection && section == 1) return [[UIView alloc] initWithFrame:CGRectZero]; return nil;} - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ if(se... 阅读全文
摘要:
.h文件@interface DetailsViewController : UITableViewController { NSDictionary *dict;}@property (nonatomic, retain) NSDictionary *dict;.m文件代码@implementation DetailsViewController@synthesize dict; - (void)viewDidLoad{ self.dict = [NSDictionary dictionaryWithObjectsAndKeys: @"Alfred", @"Na 阅读全文
摘要:
A programming language is said to be dynamically typed when the majority of its type checking is performed at run-time as opposed to at compile-time. In dynamic typing values have types, but variables do not; that is, a variable can refer to a value of any type. Dynamically typed languages includeAP 阅读全文
摘要:
In computer programming with object-oriented programming languages, duck typing is a style of dynamic typing in which an object's current set of methods and properties determines the valid semantics[n. 语义学], rather than its inheritance from a particular class or implementation of a specific inte 阅读全文
摘要:
- (return_type)instanceMethod1:(param1_type)param1_varName :(param2_type)param2_varName;- (return_type)instanceMethod2WithParameter :(param1_type)param1_varName andOtherParameter:(param2_type)param2_varName;The code above is roughly equivalent to the followingC++return_type instanceMethod1(param1_ty 阅读全文