Seemingly Random Errors

Discussion in 'iOS Development' started by ZunePod, Apr 5, 2009.

  1. ZunePod

    ZunePod Banned

    Joined:
    Aug 28, 2008
    Messages:
    1,340
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Sorry about this, but I eve since I got the UINavBar sorted out I've been trying to add a feature that would allow someone to use the email feature.

    Now I'm getting totally unrelated Errors like:

    expected specifier-qualifier-list before '-' token.

    Some quick googling has showed my that it's something to do with structs, but why would structs come into opening Mail?
  2. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    I had these a while ago, they're not random. I just can't remember what was wrong.
  3. ZunePod

    ZunePod Banned

    Joined:
    Aug 28, 2008
    Messages:
    1,340
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    They just seem random.
  4. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    You will never get a "random" error.
  5. ZunePod

    ZunePod Banned

    Joined:
    Aug 28, 2008
    Messages:
    1,340
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Anymore help with this?
  6. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Without seeing the header file, no. No, we can't help.

    The problem can be caused by a number of things. Common causes are referencing something that doesn't exist or poor syntax.
  7. ZunePod

    ZunePod Banned

    Joined:
    Aug 28, 2008
    Messages:
    1,340
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    I've managed to file down the errors. I originally put 5 IBActions in the header file and I only used one.

    I have 3 errors now.

    Here's my updated headers file:

    #import <UIKit/UIKit.h>

    @interface PageOneViewController : UIViewController
    {

    -(IBAction)openEmail;

    }



    @end

    EDIT: I just remembered that deleted this IBAction also. So now I'm down to one error.

    It says: expected specifier-qualifier-list before 'viewDidLoad'
  8. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Take a step back from your code for a second. You're looking it too closely, that's why you can't find the mistake.

    I'm not going to give you the answer because you will literally facepalm so hard wheh you see it...
  9. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    Yeah something MAJOR wrong there......

    Please remember when you notice it, don't kill yourself we all make mistakes.
  10. ZunePod

    ZunePod Banned

    Joined:
    Aug 28, 2008
    Messages:
    1,340
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    Yeah, I sorted it pretty much after I posted it.

    Now I just need to find a way to read from a .txt file, like in Jokes.app

Share This Page