Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4079412
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:47:55+00:00 2026-05-20T17:47:55+00:00

Okay, I have a really weird problem. When switching over to a different XIB,

  • 0

Okay,

I have a really weird problem. When switching over to a different XIB, it shows on simulator but not on my test device. I will provide some code and screenshots of my layout in interface builder! Thanks in advance.

  • SettingViewController (what get’s called to be displayed)
  • DetailViewController (what calls SettingsViewController to be displayed)

SettingsViewController.h

//
//  SettingsViewController.h
//
//  Created by Coulton Vento on 2/26/11.
//  Copyright 2011 Your Way Websites. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "TableViewAppDelegate.h"
#import "Sqlite.h"

@class SettingsStoreViewController;

@interface SettingsViewController : UIViewController {

}

@end

SettingsViewController.m

#import "SettingsViewController.h"
#import "TableViewAppDelegate.h"

@implementation SettingsViewController

- (void)viewDidLoad {
NSString *myDB = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"flashpics.db"];
database = [[Sqlite alloc] init];
[database open:myDB];

TableViewAppDelegate *dataCeter = (TableViewAppDelegate *)[[UIApplication sharedApplication] delegate];

myTimer = [NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector: @selector(updateNumber) userInfo: nil repeats: YES];

self.navigationItem.title = @"Album Settings";

NSString *post =[NSString stringWithFormat:@"id=%@", dataCeter.dataTwo];
NSString *hostStr = @"http://myflashpics.com/iphone_processes/get_album.php?";
hostStr = [hostStr stringByAppendingString:post];
NSData *dataURL =  [NSData dataWithContentsOfURL: [ NSURL URLWithString: hostStr ]];    
NSString *serverOutput = [[NSString alloc] initWithData:dataURL encoding: NSASCIIStringEncoding];

if ([serverOutput rangeOfString:@"yes"].location == NSNotFound) {
    //NSLog(@"Fail - %@ / %@", usernameField.text, passwordField.text);
    UIAlertView *alertsuccess = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Please check your internet connection" delegate:self cancelButtonTitle:@"Try Again" otherButtonTitles:nil, nil];
    [alertsuccess show];
    [alertsuccess release];
    [alertsuccess setTag:6];
} else {

    NSArray *myWords = [serverOutput componentsSeparatedByString:@"?!?divide?!?"];
    NSString *albumNameResults = [myWords objectAtIndex:1]; 
    NSString *albumCommentsResults = [myWords objectAtIndex:2];
    NSString *albumPrivateResults = [myWords objectAtIndex:3];
    NSString *numberOfConnections = [myWords objectAtIndex:4];

    albumName.text = albumNameResults;

    numberButton.text = numberOfConnections;

    if ([numberOfConnections isEqualToString:@"1"]) {
        connectionsButton.text = @"Connection";
    } else {
        connectionsButton.text = @"Connections";
    }


    if ([albumCommentsResults isEqualToString:@"yes"]) {
        [albumComments setOn:YES animated:YES];
    } else {
        [albumComments setOn:NO animated:YES];
    }

    if ([albumPrivateResults isEqualToString:@"yes"]) {
        [albumPrivate setOn:YES animated:YES];
    } else {
        [albumPrivate setOn:NO animated:YES];
    }
}

}

DetailViewController.h

#import <UIKit/UIKit.h>
#import "Sqlite.h"
#import "OHGridView.h"
#import "BigView.h"
#import "SettingsViewController.h"
#import "processViewController.h"

@class SecondView;
@class BigView;
@class CaptionView;

@interface DetailViewController : UIViewController <OHGridViewDelegate, OHGridViewDataSource> {
}
@end

DetailViewController.m

//
//  DetailViewController.m
//  TableView
//
//  Created by iPhone SDK Articles on 1/17/09.
//  Copyright www.iPhoneSDKArticles.com 2009. 
//

#import "DetailViewController.h"
#import "TableViewAppDelegate.h"
#import "processViewController.h"


@implementation DetailViewController

@synthesize selectedCountry;
@synthesize selectedID;



- (IBAction)switchViews {
[self presentModalViewController:bigView animated:YES];
}


- (void)viewWillAppear {
[(OHGridView *)self.view reloadData];
NSLog(@" --- %@ --- ", items);
}

- (IBAction)showSettings {

TableViewAppDelegate *dataCeter = (TableViewAppDelegate *)[[UIApplication sharedApplication] delegate];
dataCeter.dataTwo = selectedID;

SettingsViewController *screentwothree = [[SettingsViewController alloc] initWithNibName:nil bundle:nil];
screentwothree.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:screentwothree animated:YES];
[screentwothree release];

//[self.navigationController pushViewController:screentwothree animated:YES];
//[screentwothree release];
//screentwothree = nil;
}

/*
 // Override to allow orientations other than the default portrait orientation.
 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
 // Return YES for supported orientations

return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
// Release anything that's not essential, such as cached data
}


- (void)dealloc {

[selectedCountry release];
[lblText release];
[super dealloc];
}


@end

Sorry for all the code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T17:47:56+00:00Added an answer on May 20, 2026 at 5:47 pm

    This sort of thing is often due to a difference in file systems: MacOS is typically case-insensitive, while iOS is always case-sensitive. So if you specify the .xib as “myview.xib” but it’s actual name is “MyView.xib”, that’ll generally work on the simulator but not on the device. Same thing happens with images and other resources.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, this should be really simple, but I have searched all over for the
Okay I have updated my code a little, but I am still not exactly
Okay i have seen TouchXML, parseXML, NSXMLDocument, NSXMLParser but i am really confused with
Okay StackOverflow - this is a weird one. The Problem So I have a
Okay, I'm kinda stuck on really silly problem, but still can't figure out. I'm
Okay, I have run into a really bizarre problem. I have a wxWidgets program
Okay, this is really confusing me. I have some content inside of a div
Okay, I'm probably missing something really simple here, but I've been at this for
Okay, I've realized that I really have asked way too many questions without contributing
I'm really new to OpenGL but have quite a good grasp of basic trigonometry

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.