How do i make my button link to a webpage in XCode 4.6?

So im trying to create an app. But i need the different buttons to link to pages like twitter and youtube.
Ive looked everywhere for tutorials, but they're all on older versions of XCode.
Now that the .xib file is gone, the tutorials doesnt work.
Can someone please help me?

Where did the xib files go? Do you mean they have been replaced by storyboards? I assume we are talking about iOS. In any event, I suggest you focus on Apple's tutorials. They cover things like storyboards. The other tutorials don't seem to have prepared you very well for the future anyway. Nothing has changed really. Just put a button in the view and link it to an action. Same as before.

Similar Messages

  • How can i make a button link in flash??

    Hey Guys,
    Im pretty new to flash but really need your help and
    guidance. I have a nice video ive created, and i want to make the
    buttons link to certain pages on a website it will be displayed at.
    If you want to see the flash video in place on the website,
    visit www.loveandmarriagebridal.co.uk - i want to make the buttons
    to link to the following pages.
    button 1. www.loveandmarriagebridal.co.uk/index.php
    button 2. www.loveandmarriagebridal.co.uk/about_us.php
    button 3. www.loveandmarriagebridal.co.uk/
    button 4.
    http://loveandmarriagebridal.co.uk/account.php
    button 5.
    http://loveandmarriagebridal.co.uk/contact_us.php
    Could anybody please tell me exactly what i need to do in
    order to acheive that. I am using Flash CS3. Ive looked around the
    net for a solution, but i honestly have no idea what im searching
    for.
    Your help would be very much appreciated
    Thanks
    Andy

    See which form of ActionScript you used to make the site.
    Open the Actions panel and see whether you've chosen AS versions 1
    & 2, or AS 3. If you've picked the earlier versions, you can
    attach a link easily to each button by clicking on the button, and
    adding a little code in the Actions panel. Turn on ScriptAssist to
    make it easier. Click on "on" and choose "release" or "press" or
    both. Then scroll down the commands on the left and add getURL. You
    will then have a few lines that say something like, on(Release)
    getURL("putyourpageurlhere"). See bottom for exact syntax. That's
    all. The new .html or .php page will load when the button is
    clicked.
    If your buttons are not actually four-state buttons, but
    graphic or movie clip symbols, you will have do it a little
    differently. Instead of attaching the code to a button, you attach
    it to a keyframe. You give your symbol an instance name in the
    property panel, then in the Actions panel create a function that
    says essentially: when you click on this instance (onRelease)
    getURL.
    If you're using AS3, the concept is similar but the code is
    different. With a quick search you can find dozens of code examples
    that you can cut and paste.
    Here's that AS2 button code...

  • How do you make multiple buttons link to specific paragraphs within the destination page?

    Hi
    The best way i can describe this is I want to link four buttons on my homepage to a page named 'services'. Each button refers to a different section on the 'services' page.
    So what I want to happen is when I link each button, i want the user to be able to click on one and then be transferred to the 'services' page, but halfway down the page at the relevant paragraph or wherever the relevant section is.
    How do you do this people?
    Thanks for your time
    J

    Take a look at this tutorial and see if it helps

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • When I am trying to package my artwork in Adobe Illustrator CC, it is not capturing my images and fonts. How do I make sure my linked photos and fonts are captured?

    When I am trying to package my artwork in Adobe Illustrator CC, it is not capturing my images and fonts. How do I make sure my linked photos and fonts are captured?

    Not all fonts can be packaged depending on their licensing. Some fonts are set to not allow packaging. For those you would have to manually locate them on your computer and add them to the folder where the packaging occurred.
    For the images have you checked the "copy links" option?

  • How do I make a button NOT take focus when it is clicked?

    I am trying to create a virtual keypad and the problem is that when I have a Robot make a KeyEvent for a certain number when a certain button is pressed, the TextField loses focus and the focus is placed on the button that was pressed, so nothing appears in the TextField.
    How can I make a button NOT take the focus when it is pressed?
    Edited by: tox0tes on Nov 28, 2008 8:06 PM

    great. another way is to have a call to myTextField.requestfocus() in the button's actionlistener actionPerformed method, but that leads to tight coupling.

  • How do I make a button onj the form which will submit and send the pdf as an email?

    how do I make a button on the form which will submit and send the pdf as an email?

    You can set up a button with a "Submit a form" action and use a mailto type URL to specify the email address you want the forms sent do. If you want to send the entire PDF, select that option and not FDF or anything else. The mailto URL should not include any spaces and the "mailto" part should be lowercase, like:
    mailto:[email protected]
    This will attempt to initiate an email using the users default email client. If the user does not have one set up or there is some other problem, the email might not get initiated. If it needs to work with Reader versions prior to 11, then the form needs to be Reader-enabled, which you do in Acrobat 11 by selecting: File > Save As Other > Reader Extended PDF > Enable More Tools

  • How can I make a button that on press the object appears and on second press the object to disappear

    Hello,
    I'm quite new to flash programing, and I don't know how can I make a button that will make the object appear and disappear.Till now I have this code for the appear:
    on (press)
        _root.top1.gotoAndStop(2);
        _root.topp.gotoAndStop(2);
        _root.mm1.gotoAndStop(2);
              _root.m1.gotoAndStop(2);
    but from here I'm stuck.
    Thank you for your help

    What you can do is use the _visible property of the object to make it appear and disappear, or more correctly, use the opoosite of the _visible property.  You should not put code "on" objects, keep it in the timeline.
    If "object" is the instance name of the object you want to toggle, then in the timeline code you can use...
    object._visible = false;  // start with the object being invisible
    yourButtonName.onRelease = function(){
        object._visible = !object._visible;
    That one line in the function sets the object's _visible property to be the opposite of what it currently is.

  • How can I make my buttons be gone forever?

    Just starting out with Flash and have run into a problem. I have several scenes with buttons that can be pressed once and then they disappear using:
    myBtn1.onRelease = function(){ this._visible=false}
    But when I go back to the scene the buttons reappear. How can I make my buttons be gone forever?

    if you have more than 1 button that should be made not visible at any given time, you'll need to use an array to store those button references.  otherwise, you can use:
    var alreadyRemoved:Boolean;
    if(alreadyRemoved){
    myBtn1._visible=false;
    myBtn1.onRelease=function(){
    this._visible=false;
    alreadyRemoved=true;

  • How do I make document relative links for the site?

    How do I make document
    relative links for the site -
    <img src="../images/foo.gif"... (for example)?

    > How do I make document
    > relative links for the site -
    look in the bottom of the "browse to file" dialog box.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How can I make an external link (to a different folder) from the main menu?

    How can I make an external link (to a different folder) from the main menu?

    If the folder is outside the Muse page, you will have to insert manual HTML to define a more complex URL like e.g. ../_stuff for going one level up and then into a folder called "_stuff" The deeper you are in the hierarchy, the more ../ you will have to add to climb up.
    Mylenium

  • HT204053 I just changed my apple ID, how can I make my icloud link up with my new ID?

    I just changed my apple ID, how can I make my icloud link up with my new ID?

    Did you simply change the primary email address of your existing AppleID at
    https://appleid.apple.com/
    Or, did you create a new AppleID.  If you created a new AppleID, then you cannot.  All you can do is use the iCloud with the old AppleID, or create a new iCloud account with the new AppleID.
    If you changed the primary email address of the exisitng AppleID, you may need to uninstall the iCloud account on the iPhone and reinstall it to get it to use the new email address and password (you won't loose anything, its just there a means of resetting the cached credentials associated with the iCloud account).

  • How can I make a button "react"?

    This is probably a super silly question, but you know how it is, sometimes we sit on the answer and still can't find it... How can I make a button react to a click? I just want the simple effect of the button changing colors or looking like the user pushed it. Right now it's just the same old plain button, no matter if I click it or not, you can't really tell the difference. How can I give it the "pushing the button" effect? Thanks guys!

    You can choose image button and then choose from the available image buttons, or click on the folder icon when you select the image button and choose from the Gallery of Captivate 6.
    Few image buttons change color on hover or onclicked, these effects are predefined in them.
    Or you can edit that button on which you are working, from properties Panel.
    The Post and Cancel button on this thread seems like a transparent button in Captivate with different fill and stroke color, and transparency is also less, and with corner radius of 0.
    You will find these all optionns, when you will click on that button and then click on the properties panel.
    Thanks.

  • How do I make multiple buttons in my flash animation?

    I am new to flash, and I have no training in it whatsoever. I
    created a flash animation with flash CS3 for my photography
    website, and I want to link each of the images to different
    galleries on my site. When I created my first button it worked
    fine, but when I try to create actions to link more than one image
    as a button, keep getting an error that says "1021: Duplicate
    function definition." How do I make each image as a separate
    button?
    I used the video of this tutorial as my guide to learn how to
    create a button:
    http://www.adobe.com/designcenter/flash/articles/flacs3it_firstflash_pt1.html
    Also, when I run the animation to test it, it loops, and I
    don't want it to loop. How do I stop it from looping?

    I used the method shown in the tutorial I mentioned to create
    it (created a new layer for the button, selected the area of the
    image for the button,used modify -> convert to symbol
    -> button, I edited it so it was an invisible button by
    moving it to the hit frame, gave the selected area an instance name
    of Hizumi_btn, inserted a new layer for actions and added the code
    I have attached to this post.
    I assumed that I would just need to repeat this procedure for
    each of the other images in my animation, but when I did that I
    received the error.
    I greatly appreciate any help you can give me.
    Thanks for the information on how to stop the animation.
    Here is the code I used to create my first button.

  • How do you make a button download pdf file in edge animate?

    Hi does anyone know the code or know how to make a download button in edge animate, that when you click the button it will fetch a pdf file from your pc root folder and offer it to download.

    Hi Wayne,
    To make a button download a PDF, you'll have to upload your PDF somewhere online and add the link to your button in Animate using the Open URL button in the actions popup.
    Here's a good tutorial which will get you started with some of the basics of Animate, including how to create buttons. The link on your button would just be the URL of your PDF.
    Cheers,
    Sarah

Maybe you are looking for

  • Internet access problems and viewing video on internet

    I have very limited interet access most of the time.  I get a message: "You are not currently in an area that can handle data communication.  ..."  I have no problem with email and other features of the phone during this time.  The signal at the top

  • How to use instr functions?

    Hi guys, I have a table like this: name data a 10101000U000 b 011U11001100 c 0U1001001001 d 01U010100010 I want to get the position of "U" in data column, like: name position of U a 9 b 4 c 2 d 3 what should I do? I use "instr" function, but failed.

  • Tax code transport

    Dear Experts, I have created new tax code and for some  existing tax codes i have just change the description. I have done this in FTXP but system has not ask for a trasnport request no. Even i went to tax code menu bar of transaction FTXP and click

  • CRM SystemUser Entity Field "Preferred Email"

    Hello, We are using CRM 2013 on-premise.  We notice there is a field under the SystemUser entity called "Preferred Email" (real name is preferredemailcode). It is an option set field with "Default Value". Is there any documentation or does anyone kno

  • Is there a keyboard shortcut to switch between open documents?

    Is there an easy way to switch between 2 or 3 open documents in Pages, as when trying to combine excerpts from several places into a new document?