Error I don't know how to fix myMessage.text

Hi,
I am getting an error on the below piece of code, the error is showing on the myMessage.text:@"hello xcode";
can anyone see where I'm going wrong?, I am following a self teach manual. Thanks in advace.
UILabel *myMessage;
   myMessage=[[UILabel alloc]  
              initWithFrame:CGRectMake(25.0, 225.0, 300.0, 50.0)
              myMessage.text:@"hello xcode";
    myMessage.font=[UIFont systemFontOfSize:48];
    [_window addSubview:myMessage];
    [_window makeKeyAndVisible];
    return YES;

I have no errors now but am getting a white screen on the simulator, can anyone help out?
UILabel *myMessage;
    myMessage=[[UILabel alloc]  initWithFrame:CGRectMake(25.0, 225.0, 300.0, 50.0)];
    myMessage.text=@"Hello Xcode";
    myMessage.font=[UIFont systemFontOfSize:48];
    [_window addSubview:myMessage];
    [myMessage release];
    [_window makeKeyAndVisible];
return YES;

Similar Messages

  • Keep getting error and don't know how to fix...

    ok, I keep getting this nullPointerException error.. and I have no clue what I've done wrong.... I believe its on the client side of it... because when I run just the client.. the try catch should make it be like "can't find host" but instead.. it just sits there.. the cursor blinking.. and Idk why.. so if you could please help me!!!!!!! heres the server and client code
    import java.net.*;
    import java.io.*;
    public class SocketServer extends Thread
         private static Socket socket = null;
         static boolean forever = true;
         static RTS2 rts;
         public static void main(String[] args) throws Exception
              ServerSocket serverSocket = null;
              try{
                   serverSocket = new ServerSocket(5454);
              }catch (IOException e) {
                System.err.println("Could not listen on port.");
                System.exit(1);
            Socket clientSocket = null;
             try {
                clientSocket = serverSocket.accept();
            } catch (IOException e) {
                System.err.println("Accept failed.");
                System.exit(1);
            while(forever)
                 try{
              ObjectOutputStream oos =
                            new ObjectOutputStream(socket.getOutputStream());
              oos.writeObject(rts.getCompany());
              ObjectInputStream  ois =
                           new ObjectInputStream(socket.getInputStream());
                      rts.setEnemy((Men)ois.readObject());
                      socket.close();
                 } catch (Exception e) {
                               System.out.println(e);
                               e.printStackTrace();
    import java.net.*;
    import java.io.*;
    public class SocketClient
         static boolean forever=true;
         static RTS2 rts;
         static Socket socket = null;
         static ObjectInputStream  ois = null;
         static ObjectOutputStream oos = null;
         public static void main(String[] args) throws Exception
              try {
                socket = new Socket("josh", 5455);
                ois = new ObjectInputStream(socket.getInputStream());
                   oos = new ObjectOutputStream(socket.getOutputStream());
            } catch (UnknownHostException e) {
                System.err.println("Don't know about host");
                System.exit(1);
            } catch (IOException e) {
                System.err.println("Couldn't get I/O for the connection");
                System.exit(1);
            while(forever)
                 rts.setEnemy((Men)ois.readObject());
                 System.out.println("hello");
                    oos.writeObject(rts.getCompany());
                   oos.flush();
    }

    ok so that was a silly mistake I made... yet it didn't fix the problem... whenever I run just the client, shouldn't it not find a host and not just sit there blinking? but when I do run the server then run the client I get this error from the server side
    java.lang.NullPointerException
    at SocketServer.main(SocketServer.java:32)
    which is when it starts the ObjectOutputStream and such... so I can only assume the problems on the client side, I bet its something easy too that i'm missing.. lol

  • Error #1009 - don't know how to fix

    Hi everyone,
    I'm new to flash and specially to AS3 and I'm getting this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at VIDEO_FINAL_02_fla::MainTimeline/frame1334()
    And strangely enough it works in mw SWF&FLV Player and in Safari or Firefox!!! The button just doesn't work with flash player - and I need it to work in this player.
    It's a simple educational video - it starts with a movie, then it stops and you have to click in a button that leeds you in to some text about a subject. then you click 'continue' and you continue watching tnhe second video - and so on (7 buttons and vídeos). - It's very linear.
    Here goes the the code of this frame:
    stop ();
    myLIVRO_BOTAO.addEventListener(MouseEvent.CLICK, livroPressz);
    function livroPressz(e:MouseEvent):void {
    gotoAndPlay("LIVROa");
    I can't understand... I gave this button (LIVRO_BOTAO) an instance name (myLIVRO_BOTAO) on the properties tab.

    Forget it..
    I just found the answer in another website.
    You shouldn't have movieclips inside buttons - and that was the problem...
    I've just tried and it worked!
    You just have to include a line before the rest of the code:
    myButton = SimpleButton(getChildByName(myButton))
    myButton - name of your button.
    Thank you anyway.

  • Ran "Verify Disk", and gave me an error i don't know how to fix

    Here is the error message that comes back after I do the Verify Disk.
    Verifying volume “Macintosh HD”
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Illegal name
    Illegal name
    Checking multi-linked files.
    g Catalog hierarchy.",0)
    Checking Extended Attributes file.
    Checking volume bitmap.
    Volume Bit Map needs minor repair
    Checking volume information.
    Checking volume information.
    id volume free block count",0)
    (It should be 39891409 instead of 39891403)
    The volume Macintosh HD needs to be repaired.
    Error: The underlying task reported failure on exit
    1 HFS volume checked
    Volume needs repair
    It says i need to repair, but it won't let me hit the repair disk option. Any help for a Mac loving noob?

    Hi, H.
    It sounds like you ran Live Verification, i.e. used Verify Disk against your startup disk while booted from such. One can Verify, but not Repair, the current startup disk.
    Run the Procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    If Disk Utility still fails to repair the disk, see the "Disk Utility cannot repair the disk" section of that same FAQ.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • New PC with Windows 8.1 trying to sync phone but receive following error message and don't know how to fix: iPhone cannot be synced. You do not have enough access privileges for this operation.

    In downloading iTunes onto my PC (Dell XPS 8700) with Windows 8.1 trying to sync my iPhone but receive keep receiving following error message and I just don't know how to fix: iPhone cannot be synced. You do not have enough access privileges for this operation.
    I would greatly appreciate help with this matter.

    See if the user tip helps: https://discussions.apple.com/docs/DOC-6562

  • I keep getting the message an unknown error has occured 0x80090318. I don't know how to fix it. I even deleted itunes off my computer and reinstalled and still get the error message

    I keep getting the message an unknown error has occured 0x80090318. I don't know how to fix it. I even deleted itunes off my computer and reinstalled and still get the error message

    This helped me.
    Go to Start -- Accessories -- Command Prompt, make right click and choose run as administrator
    Type this command : netsh winsock reset
    then restart your computer, everything should be ok after this. Good Luck.

  • Disteller error 5 and i don't know how to fix.  can anyone provide guidance?

    disteller error 5 and i don't know how to fix.  can anyone provide guidance?

    What version of Distiller Server do you run? Or is this the regular Distiller, on a server? What triggers the error?

  • I can't sync my iPad to the iTunes it's give me an unknown error  message 0xe8000012 I don't know how to fix it and where is the problem could be need format or the problem is in the charging port please can any one help me

    I can't sync my iPad to the iTunes it's give me an unknown error  message 0xe8000012 I don't know how to fix it and where is the problem could be need format or the problem is in the charging port please can any one help me

    Unknown Error containing "0xE" when restoring
    To resolve this issue, follow the steps in iPhone, iPad, iPod touch: Unknown error containing '0xE' when connecting. If you have a Windows computer with an Intel® 5 series/3400 series chipset, you may need updates for your chipset drivers. See iTunes for Windows: Issues syncing iOS devices with P55 and related Intel Chipsets for more information.
    From Here  >  http://support.apple.com/kb/TS3694

  • HT1222 I am trying to update my iPhone to IOS 1.6.3 but everyone I update it keeps on saying error! I don't know how to fix it!! HELP

    I am trying to update my iPhone 4s to IOS 1.6.3 but everyone I update it it says error but I don't know how to fix this error!! HELP!!!

    That sounds like a possible security software issue on the computer you are using, or are you trying to do the update via the phone OTA?
    If you are trying to do it OTA, you might want to connect the phone to the computer and iTunes and attempt the update from there.
    BTW, the update is iOS 6.1.3.

  • I updated Xcode 5 to Xcode 6.0.1. It messed up my previous apps and i don't know how to fix it. Is it possible to uninstall Xcode 6 and go back to Xcode 5?

    Hello,
    I updated Xcode 5 to Xcode 6.0.1. It messed up my previous apps and i don't know how to fix it. Is it possible to uninstall Xcode 6 and go back to Xcode 5?

    I found this solution http://objcsharp.wordpress.com/2014/09/21/how-to-get-back-the-ios-7-sdk-after-up grading-to-xcode-6/

  • I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    I have an iPad 2 and so does my mom.  We both have the app Slotomania and now all of sudden after having it for months, our games connected and we don't know how to fix it.  Deleting it and reinstalling does not work.

    Does the app now use iCloud, do you use iCloud and do the two of you use the same account on iCloud?
    Just a guess.

  • My iphone dosen't doesn't make key tone sounds anymore when I write a text message or when I want to dial a phone number I don't know how to fix this problem, I don't hear the clicking noise anymore does anyone know how to fix this problem?

    My iphone dosen't doesn't make key tone sounds anymore when I write a text message or when I want to dial a phone number I don't know how to fix this problem, I don't hear the clicking noise anymore does anyone know how to fix this problem?And all the sounds on my phone are on, even the keyboard clicks.

    Try restarting your iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo, double check the volume button just in case.  If you still can't hear the tones go into your settings>sounds and make sure the options are on. 

  • My 'clear history button is not working. When I click on it it doesn't do anything and the letter are gray instead if blue like usual. I've gone to every type of settings I can bit I don't know how to fix it. Please help .

    My 'clear history button is not working. When I click on it it doesn't do anything and the letters are gray instead of blue like usual. I've gone to every type of settings I can think of but I don't know how to fix it. Please help .

    T
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                 
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • My macbook will not download any apps from the app store. I don't know how to fix it, help?

    My macbook will not download any apps from the app store. im running on mac os x 10.6.8. I don't know how to fix it, help?

    Install the Mac OS X 10.6.8 Update Combo
    That will re download and install the App Store for you which may help.
    It's ok to install the combo even though you are already running v10.6.8
    Restart your Mac after combo is installed, try downloading apps.
    Note... if you have Little Snitch installed that will prevent downloads. If you have anti virus software installed, disable that and turn off the Firewall in System Prefereces > Security.

  • My Ipod is frozed on the restore screen (the one with the apple, when you restore it). I don't know how to fix it, my computer says it is corrupt. What do I do?

    I was adding music to my Ipod the other day, from some cds I bought. My ipod randomly crashed, and said it was corrupt, and needed to be restored. So I began the restoration. It restored, said it needed it again! I began to restore it again, and my Ipod froze on the restore screen (where the apple shows). I don't know how to fix this, and I really don't want to buy a new one.
    Help?

    What happens if you try resetting it while still connected and restoring it one more time in iTunes?  To reset the iPod, press and hold both the Select/Center and Menu buttons together long enough for the Apple logo to appear.
    B-rock

Maybe you are looking for

  • New order type creation ?

    Hi, While creating a new order type what points we need to remember ? And what information we need to get from the user. As per my knowledge i can create the order type as 01) Define order types 02) Order type dependent parameters 03) Define number r

  • Opening of an ADF applcn in a new browser window from another ADF applcn.

    The requirement is in the form of a usecase below, can you please let us know how could we resolve this. Let us consider we have two ADF applications A and B. Once ADF application A is rendered, in one of the pages of Application A there is a link wh

  • External Catalogs of SRM 5.0 not working in SRM 7.0

    Hi all, Iu2019m in the process of converting all SRM 5.0 punchout catalogs to SRM 7.0. All catalogs are working fine in SRM 5.0 but not in SRM 7.0. For one I got a problem autologgin into the vendor catalog page. In SRM 5.0 we are using ITS (no porta

  • Add iCal to web site

    Can iCal be added to a web site - to show availability for accommodation?

  • My Ipod keeps saying "Do not disconnect" and the update ipod is not working

    Hi, I just got my ipod nano a couple of days ago and after loading the itunes and then plugging in the ipod i unplugged it when it said do not disconnect without thinking. Now when i plug in my nano it keeps saying do not disconnect and although the