Button problem...

Discussion in 'iOS Development' started by TookTheDaysForPagent, Jan 29, 2009.

  1. TookTheDaysForPagent

    TookTheDaysForPagent Banned

    Joined:
    Jan 28, 2009
    Messages:
    31
    Likes Received:
    0
    That is was supposed to go to another view when the button is pressed. Every other view works just fine but this is the only view that doesn't appear when the button is pressed, the app quickly freezes and crashes.
  2. Duykur

    Duykur Banned

    Joined:
    Mar 24, 2008
    Messages:
    1,674
    Likes Received:
    0
    not sure but you might be doing one of two things:
    1) Overloading the CPU with an malformed code
    2) Malformed code doing an "illegal Operation"

    whatever it is i bet it has to do with you other views
  3. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Nothing in that function says "go to another view." Also, nothing in that function even says "show another view."
  4. TookTheDaysForPagent

    TookTheDaysForPagent Banned

    Joined:
    Jan 28, 2009
    Messages:
    31
    Likes Received:
    0
    *twitch*

    Er, k, then what do I do? o.o;
  5. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    All you have in that action is:
    1. Change the alpha to 1.0 (Opacity to 100%).
    2. In 0.5 seconds, slow move the alpha from 1.0 to 0 (Opacity to 0%).

    Not sure how you can change the views though, i'm just telling you what you have

    Please Register or Log in to view images

    .
  6. TookTheDaysForPagent

    TookTheDaysForPagent Banned

    Joined:
    Jan 28, 2009
    Messages:
    31
    Likes Received:
    0
    I tried the code I used to make the other buttons change views, it still doesn't work..>.<
  7. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Can you post the code?
  8. TookTheDaysForPagent

    TookTheDaysForPagent Banned

    Joined:
    Jan 28, 2009
    Messages:
    31
    Likes Received:
    0
    [self.view insertSubview:IdeaView];

    I think I'm missing something...

    Please Register or Log in to view images

  9. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    I'm just guessing, as i haven't a clue how to do this either, but maybe try:
    Code:
    [self.view addSubview:IdeaView];
  10. TookTheDaysForPagent

    TookTheDaysForPagent Banned

    Joined:
    Jan 28, 2009
    Messages:
    31
    Likes Received:
    0

Share This Page