我有一个ipad和iphone的通用应用程序,它没有使用任何故事板.但最近我把所有的xib文件都移到了故事板中.我还引用了故事板视图控制器的所有插座和操作连接.
我已经在xcode 5中的应用程序的信息选项卡中设置了MainStoryBoradBasename(iPad)和iphone
然后我didFinishLaunchingWithOptions在appdelegate中删除了我的代码,但它显示了空白屏幕.所有教程都说没有必要rootviewcontroller在使用故事板的时候没有指定(注意:我还isinitialviewcontroller通过检查设置了我的故事板).但是,如果我window.rootviewcontroller在stroyboard中设置我的初始视图控制器,didFinishLaunchingWithOptions一切工作都很完美,当我删除它时显示空白屏幕.在xcode 5中是否需要任何其他设置?
我有一个字符串*strSearchNumber = @"9970405060"并想检查它是否存在于字符串*strPhoneMobile = @"+ 91997040560"
如何检查我的字符串的最后6个或8个字符是否存在于其他字符串中.提前致谢.
在此应用程序中启动纵向模式.

.
代码段
NSInteger heightOne;
NSInteger heightTwo;
NSInteger imgV;
CGRect Bounds = [[UIScreen mainScreen] bounds];
if (Bounds.size.height == 568) {
// code for 4-inch screen
heightOne = 480+38;
heightTwo = 240+38;//370
imgV = 360;
} else {
// code for 3.5-inch screen
heightOne = 480;
heightTwo = 240;//330
imgV = 310;
}
UIView *firstView = [[UIView alloc] initWithFrame:CGRectMake(00, 00,320,heightOne)];
firstView.opaque = NO;
firstView.tag = 1000;
firstView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5f];
[self.view addSubview:firstView];
UIImageView *img = [[UIImageView alloc]initWithFrame:CGRectMake(250,imgV,50,50)];
img.image = [UIImage …Run Code Online (Sandbox Code Playgroud)