I had my iPhone app working, developed with Storyboard. I decided to take all of the methods that belonged in a SQLite method and move them to a new SQLite class (.h and .m).

Now I have errors that I can't seem to get rid of. The basic problem is the textfields on the "scene" are now unreachable from the SQLite class (they are in another class, where they belong). The properties are defined in EDVController.m... I am trying to reach them from SQLite.m.

I have read the docs, but can't find anything that fits my problem.

How do I do this?

Simple, when you call method to interact with database provide parameters with it instead of trying to get direct access.
Example, this is very simplified JAVA!!!
Before change

public boolean login(){
PreparedStatement preparedStatement = null;
	try{
		String strQuery = 
		"SELECT * FROM user WHERE uid=? AND password=? AND";
				
		preparedStatement = conn.prepareStatement(strQuery);
		preparedStatement.setString(1,usernameTextField.getText());
		preparedStatement.setString(2,passwordTextField.getText());

would become

public boolean login(String username, String password){
PreparedStatement preparedStatement = null;
	try{
		String strQuery = 
		"SELECT * FROM user WHERE uid=? AND password=? AND";
				
		preparedStatement = conn.prepareStatement(strQuery);
		preparedStatement.setString(1,username);
		preparedStatement.setString(2,password);

and you will call it from your user interface presumable on button click as

public void actionPerformed(){
    DataManager manager = new DataManager(); //Your database class
    manager.login(usernameTextField.getText(), passwordTextField.getText());
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.