我開發了一個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