我开发了一个iphone应用程序,现在我想在另一个项目中使用此应用程序作为模块。我怎样才能做到这一点?如何在另一个Xcode项目中调用Xcode项目.......?
回答
你可以拖动ñ下降了projectA到项目B(在Xcode),或选择“添加文件”(不要勾选“文件拷贝”)
为什么不检查复制文件?如果其他项目被删除,您的主项目将会丢失导入的模块! –
通过跳过“文件拷贝”阶段,你将不得不从了projectA到项目B的依赖关系,通过这种方式,如果你将编辑项目B,修改将自动反映了projectA!否则你不会得到依赖关系,而只是重复类,这不是一个好主意! ;) – daveoncode
但我怎么能给依赖? –
复制相关类和资源投入到项目中,要模块添加到,然后创建某种控制器接口(TabBar,所以导航控制器),两个项目之间进行导航的(项目复制到)
任何其他方法来调用整个项目没有复制文件? –
实际上你可以拖动一个xcode项目到另一个人,但我不建议......这是非常巧妙的复制文件,并在Java项目中的控制器连接起来,现有的项目 –
正如我们在添加.jar文件java项目。同样,我们可以在Xcode Project中做些什么。 –
-(IBAction)btnclick:(id)sender{
NSURL *fileURL = [NSURL fileURLWithPath:[@"/Users/new1/Desktop/temp.txt" stringByExpandingTildeInPath]];
NSError *error = nil;
NSString *fileContentsString = [NSString stringWithContentsOfURL:fileURL
encoding:NSUTF8StringEncoding
error:&error];
if (!fileContentsString) {
NSLog(@"Error reading file");
}
NSString *url;
if (![[[[txtFld stringValue] componentsSeparatedByString:@"//"] objectAtIndex:0] isEqualToString:@"http:"]){
url = [[[txtFld stringValue] componentsSeparatedByString:@"."] objectAtIndex:0];
}
else{
url = [[[txtFld stringValue] componentsSeparatedByString:@"."] objectAtIndex:1];
}
NSRange result = [fileContentsString rangeOfString:url];
if (result.location == NSNotFound) {
NSLog(@"URL not found in file");
NSAlert *alrt = [[NSAlert alloc] init];
NSString *alrtstr = [NSString stringWithFormat:@"Not Authorise person to open : %@",[txtFld stringValue]];
[alrt setMessageText:alrtstr];
[alrt runModal];
NSLog(@"btn clicked ");
}
else{
NSLog(@"URL found in file : %@",[txtFld stringValue]);
if (![[[[txtFld stringValue] componentsSeparatedByString:@"//"] objectAtIndex:0] isEqualToString:@"http:"]){
[webVw setMainFrameURL:[NSString stringWithFormat:@"http://%@",[txtFld stringValue]]];
}
else{
[webVw setMainFrameURL:[txtFld stringValue]];
}
}
}
-(IBAction)webView:(WebView *)sender didReceiveTitle:(NSString *)title forFrame:(WebFrame *)frame{
NSString *currentURL = [webVw stringByEvaluatingJavaScriptFromString:@"location.href;"];
NSLog(@"%@",currentURL);
[txtFld setStringValue:currentURL];
}
http://www.example-code.com/objc/ftp_downloadIntoString.asp –
ftp://josskl.ipower.com/public_html/kidsnetplayground/download/version.txt “gstrAppDataPath&” \微软\加密\ KnsSurakshit \ version.txt”, “josskl”, “Crystal88 *” –
的NSString * URL = @ “的ftp:// josskl:Crystal88*@josskl.ipower.com/public_html/kidsnetplayground/download/version.txt”; 的NSLog(@ “%@”,[clsLicence startStreaming:URL]); –
-(void)readPlist:(NSString *)viewName :(NSString *)teamName{
F1WorldAppAppDelegate *f1Delegate = (F1WorldAppAppDelegate *)[[UIApplication sharedApplication] delegate];
NSString *plistFileName = [self openPlist:viewName];
NSMutableArray *dataArray = [[[NSMutableArray alloc] initWithContentsOfFile:plistFileName] autorelease];
if ([viewName isEqualToString:@"News"]) {
NSLog(@"%@",[dataArray description]);
f1Delegate.newsDetails.stories = dataArray;
}
else if ([viewName isEqualToString:@"Team"]){
NSMutableDictionary *dataDictionary = [[[NSMutableDictionary alloc] initWithContentsOfFile:plistFileName] autorelease];
f1Delegate.teamDetails.stories = [dataDictionary objectForKey:teamName];
}
else if ([viewName isEqualToString:@"Schedule"]){
f1Delegate.scheduleDetails.stories = dataArray;
}
else if ([viewName isEqualToString:@"Drivers"]){
f1Delegate.driverDetails.stories = dataArray;
}
else if ([viewName isEqualToString:@"TeamDetails"]){
f1Delegate.teamDetails.teamsDetails = dataArray;
}
}
http://kandroid.wordpress.com/2011/05/31/tabview-part-5-tab-control-at-bottom-of-app/ – Manish
NSString *[email protected]"ftp://josskl:Crystal88*@josskl.ipower.com/public_html/kidsnetplayground/download/version.txt";
NSLog(@"%@",[clsLicence startStreaming:url]);
- 1. 在另一个XCode项目中导入XCode项目
- 2. 如何将一个Xcode项目用于iOS中的另一个Xcode项目?
- 3. 将xcode项目添加到另一个xcode项目中
- 4. 如何在另一个xcode项目中提供xcode项目的参考?
- 5. 的Xcode如何在另一个项目中添加一个静态库项目?
- 6. 如何在一个主项目中包含多个Xcode项目
- 7. Xcode将ViewController从一个项目拖放到另一个项目
- 8. Xcode 4.2如何将一个项目包含到另一个项目中?
- 9. 如何在xcode中引用另一个项目?
- 10. 在终端中编译Xcode项目 - 选择另一个Xcode
- 11. 将XCode项目产品包含到另一个项目中
- 12. Xcode:项目中的项目
- 13. 将Xcode项目集成到另一个
- 14. 如何一个项目添加到另一个(Xcode中)
- 15. 如何导入项目设置从一个Xcode项目到另一个
- 16. 如何在项目中打开另一个窗口(Xcode窗口)?
- 17. 在Xcode中从一个项目到另一个项目的参考文件
- 18. 如何在xcode项目中使用GLMath?
- 19. 如何在xcode项目中使用msgpack?
- 20. Xcode项目目录
- 21. 如何将文件从一个Xcode项目迁移或导入到另一个Xcode项目?
- 22. 将目标从一个Xcode项目复制到另一个?
- 23. Xcode中的项目
- 24. 犯项目在Xcode
- 25. 在Xcode 4.2项目
- 26. 在Xcode项目中导入外部Xcode项目
- 27. 如何将客观的C xcode项目添加到另一个快速项目
- 28. 如何压缩Xcode项目?
- 29. 如何克隆Xcode项目?
- 30. 无法在Xcode 8.2.1中调试项目
的http:// www.mactricksandtips.com/2 009/07/hide-the-menubar-or-dock-in-specific-apps.html – Manish