How to resize mainstory board in Xcode and iOS simulator ?

I have a problem with Xcode i can't get to resize the main storyboard it shows up like and iPad and in the iOS simulator it shows up big and half the content comes up how do i resize to an iPhone

1. Create a BitmapData of the correct size of the full image
2. Use BitmapData.setPixels to create pixel data from your byteArray
3. Make a new Bitmap, Bitmap.bitmapData = BitmapData
4. Create a matrix with the correct scaling factors for your thumbnail
5. Create a new BitmapData the size of your thumb
6. Use BitmapData.draw to draw your image data from the Bitmap to the new BitmapData with the scaling matrix
7. Use BitmapData.getPixels to create a bytearray from your thumb BitmapData
8. save it
You'll have to look up the AS3 reference to see how all these methods work.

Similar Messages

  • How to create fxplug transition for xcode and quatrz composer

    how to create fxplug transition for xcode and quatrz composer?

    Hi Mohan,
    You have to create and configure your system in the system administration tab in the portal.
    Usually, it looks like the following:
    System from template: JDBC System
    Connector properties
       Connection URL: jdbc:sap:sqlserver://<serverlocation>;DatabaseName=<database name>
       Driver class name: com.sap.portals.jdbc.sqlserver.SQLServerDriver
    User management properties
       User mapping type: admin, user
    Set the system with an alias.
    Go to user administration tab and map the user with VCRole to the configured system
    (the default for MSSQL is usauly user: sa and pw: admin)
    Save your changes and logon to VC with this user.
    The alias name should appear in your list of systems.
    Hope I helped,
    Shay

  • TS3280 How can i enable both paired bluetooth and ios keyboard input at the same time?

    How can i enable both paired bluetooth and ios keyboard input at the same time?
    This is needed for the app im working on. Need some user input via keypad as well as scanner input via a paired bluetooth scanner.

    You probably should not be using a keyboard bluetooth profile for a scanner, I am not a developer for apple so do not know the location for you to find out the correct profile you should be using for an input device that is not a keyboard. Sorry,
    I am sure if you navigate the apple developer site you will probaly finmd what you're looking for.
    https://developer.apple.com

  • Anyone how to resize an image using imagereader and imagereadparam?

    I want to use imagereaderparam to process the image.
    MY code is as follow:
    ImageReader reader = _editor.getImageReader();
         try
         if (reader != null)
                   int w = reader.getWidth(0);
                   int h = reader.getHeight(0);
                   ImageReadParam param = reader.getDefaultReadParam();
                   //param.setDestination(reader.read(0));
                   Dimension d = new Dimension(my_width, my_height);
                   param.setSourceRenderSize(d);
                   BufferedImage bi = reader.read(0, param);
         } catch (Exception e)
              e.printStackTrace();
    This code just not work , and get an exception
    java.lang.UnsupportedOperationException: Can't set source render size!
    anyone know how to do that ?
    coz i dont want to use getScaledImage...

    Hi,
    Are you just trying to produce a BufferedImage at a smaller size? May I ask why you don't want to use getScaledInstance? I agree with you not to use it. It is slow. Just wondering what your reasons are. If all you need is to take one image and make it a different size, try this:
    BufferedImage src = ...
    int scale = 0.5f;
    int w = (int)(src.getWidth(null) * scale);
    int h = (int)(src.getHeight(null) * scale);
    // could use TYPE_INT_RGB if there's no alpha in your image
    BufferedImage dest = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
    Graphics g = dest.getGraphics();
    g.drawImage(src, 0, 0, w, h, null);
    d.dispose();How does that work for you? It should be pretty quick.
    Shannon Hickey (Swing Team)

  • How to resize window keeping relative width and hieght

    Ok as usual I do not want this done for me but I could use a pointer. Simply put I wish to set a JFrame so that when it is resized by the user it holds its relative width and height.
    Could somebody point me to where it is at in the API or a generic sample of code that I can rework? I have read for it but am not finding it so far. Thank you for your patience and any help offered. If it matters I'm doing a fairly simple app in NetBeans not an applet or anything.
    Edited by: Donalds on Apr 8, 2010 5:10 PM

    This was the best I could think of off the top of my head.
    You may want to request this thread be moved to the swing forums for better contributions.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ComponentEvent;
    import java.awt.event.ComponentListener;
    public class SampleFrame {
        public Dimension lastSize = new Dimension(400,300);
        public JFrame frame;
        public SampleFrame() {
            frame = new JFrame("Sample Frame");
            frame.setSize(lastSize);
            frame.setLocationRelativeTo(null);
            frame.addComponentListener(new ComponentListener() {
                public void componentResized(ComponentEvent e) {
                    Dimension currentFrameSize = frame.getSize();
                    int widthDelta = Math.abs(lastSize.width - currentFrameSize.width);
                    int heightDelta = Math.abs(lastSize.height - currentFrameSize.height);
                    if(heightDelta > widthDelta) {
                        double scaleRatio = currentFrameSize.getHeight() / lastSize.height;
                        currentFrameSize.width = (int) (lastSize.width * scaleRatio);
                    } else {
                        double scaleRatio = currentFrameSize.getWidth() / lastSize.width;
                        currentFrameSize.height = (int) (lastSize.height * scaleRatio);
                    frame.setSize(currentFrameSize);
                    lastSize = currentFrameSize;
                    frame.setLocationRelativeTo(null);
                public void componentMoved(ComponentEvent e) {
                public void componentShown(ComponentEvent e) {
                public void componentHidden(ComponentEvent e) {
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        public static void main(String[] args) {
            new SampleFrame();
    }

  • Size of xcode and iOS download?

    I have been downloading xcode3.2.4_and_ios_sdk4.1.dmg for over 24 hours and see no end in sight. My download pane noted that the download would be 2.94 GB which was reached today at 1500 HRS, yet it continues to download. At the moment 3.44 GBs have downloaded.
    The bummer is that I already had xcode v3.2.4 but found no way to only download the iOS SDK.
    Anyone know how many more days this will take? My wife is beyond mad as we share the same bandwidth.
    Thanks.

    514 KB/sec!!!!! I believe it, I really do.
    I've known for months that we have had issues with our AT&T setup. Monday I will call and have someone come out and take a look at all of it. I'm on a wireless DSL modem, but I doubt that has much to do with the blazing download speed we are experiencing. I've NEVER seen anything over 56 KB/sec. Little wonder a takes weeks to download anything.
    Thanks for your help. I appreciate it very much.

  • Xcode and iOS

    Hello,
    I have Xcode 4, bought from the Mac App Store and I am wondering if it is possible to make apps for iOS and put them on my personal iPod Touch 4th Generation without paying the $99 Developer Registration Fee. I will only put it on my own iPod Touch. Is it possible to plug my iPod into my Macbook Pro and install the app on my iPod without Jailbreaking or deleteing all my apps from the App Store and songs and still use it as a normal iPod Touch, just allowing my to put my apps made in Xcode 4.
    Regards,
    Tim

    If you have the tools, and if you have an Intel Mac with Snow Leopard, and if you sign up for the Developer Program, you can build and test apps on your own iOS device.
    They will only work for a short period each time before you have to renew the testing profiles and you will need to build for the iOS on your device.
    See the iOS Dev Center for info, etc.

  • Xcode and ios sdk for Mac OS X Lepord

    Actually im running Mac os X Lepord in VM ware. since i need to to learn about Xcode stuff. therefore can anybody tell that what is the xcode which really works with lepord including ios sdk and what is the best update to install! thanks

    Can you see the downloads at this link?
    https://developer.apple.com/downloads/

  • How do i send invite with 3gs and ios 6 calendar event?

    i can do it from the macbook pro but I have problem finding how to do it from the iPhone...
         stupid me

    Any solution not involving iCloud?
    Thanks anyway for this options, I will consider eventually.

  • How to fix the glitch from netflix5 and ios 7 on ipad to stream feed onto tv without turn off mirroring message, how to fix the glitch from netflix5 and ios 7 on ipad to stream feed onto tv without turn off mirroring message

    Has anyone been able to turn off mirroring successfully while streaming netflix feed through ipad to view on tv.  With the new netflix update I receive a message to turn off mirroring in control panel,  but I am not seeing a direct way to turn it off. 
    I contacted netflix and it is some bug between apple and netflix,  their solution did not work so advice was to contact apple.

    We are currently running 10.8.5 with Workgroup manager 10.8 and Server App 2.2.5
    My question is, would there be any modifications i would need to make to your instructions for them to work on the above os and app version?

  • How to make my waveform in control and design simulation run continuously?

    Hi all, i m a begineer of Labview and have some question to ask.
    I am using the Labview to design and implement a controller for FOPTD system, but i found that the waveform in the "control and simulation loop" is not running continuously. I mean it keep repeat in the same graph from 0 to 10second. Is there any approach to make it run continuously? 
    Thankyou very much.
    Solved!
    Go to Solution.
    Attachments:
    Project 1.png ‏12 KB
    Project 2.png ‏18 KB

    Well, my suggestion then is to do the following: change final time from Inf back to 10 s (or whatever number that capture the whole simulation) and do a while loop around the Control and Simulation Loop with a "wait until next ms" function to give you time to react and change parameters, like this below. This would make LabVIEW to do the whole simulation, wait for 1000 ms and then, run the simulation again with new parameters. If you need more time, just need to change the constant wired to the "wait until next milisecond".
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • HT4759 How to update to iTunes 10.5 and iOS 5 with only my iPad no computer

    I do not have my old home computer and I am trying to update my iPad to iTunes 10.5 and also update to iOS 5, help me please

    There is no iTunes for iOS devices.
    iTunes is only for computers.
    You need a computer to update iOS 4.

  • Web Inspector broken by iOS7 on both phone and iOS simulator - MAJOR issue

    Since updating to iOS7 on my phone and updating Xcode web inspector has become useless. The button that allows you to click on assets select and the tree that lets you navigate page assets are completely unresponsive - Is anyone else seeing this issue - the web inspector is not only useless it's effectively halted development - i'm trying to understand how something so significant has got through Apple's ever diminishing quality control....

    Just posted a workaround I found for all but Style inspector here:
    https://discussions.apple.com/message/23137095#23137095
    I agree, MAJOR issue.

  • Xcode 6 iOS Simulator not responding

    the iOS Sim is not responding and I can't import UIKit in playground
    so far I have tried to redownload it but it didn't change anything

    The Xcode 6 beta requires at least OS X 10.9.3, but since it has not been released yet, a better place for your question would be Apple's Developer Forums.

  • Upgrading to xcode and can't connect to the network

    Hi! I use a C++ library in my application which connects to the network (I suppose it uses sockets). I've been using it for months and I was using xcode 3.2.4. Now, I just had the great idea of upgrading to xcode 3.2.5, and I found out my application was crashing with the error:
    If you are encountering this problem running a simulator binary within gdb, make sure you 'set start-with-shell off' first. 3.2.5
    Ok, couldn't solve it, so went back to 3.2.4, as suggested somewhere. The application is not crashing anymore, but now the library can't connect anymore to the network. Tried to rebuild it (I didn't write the library but I have the sources) and use the new library, but nothing. Still the library can't connect to the network. I tried with every simulator.
    Any idea what there could be wrong and how I may be able to solve this? Can I somehow delete manually everything related to xcode and the simulator and try to start all over again?
    Thanks!

    I've been able to temporarily solve this problem by removing the entire Development directory and installing again xcode 3.2.4. Even with xcode 3.2.4 however, the same happened, and I had to do this procedure again. Now it seems to be working correctly, but it seems something very strange has happened. Hasn't anyone experienced anything similar?
    Thanks!

Maybe you are looking for

  • IMac g5 screen remains black when turning on

    My iMac 2.0 gz ppc g5 froze up while net surfing. I turned off power strip and when I turned computer back on all I hear is the fan running, the power white light is on but the screen remains black. Am I in some weird sleep mode? Or worse? I' m runni

  • Standby database 11g

    Oracle 11.2. I am building standby database as a reporting database. Can physical standby database only be open read-only state? My understanding is yes, but I like to confirm it. If I want my standby database to be read/write, only logical standby d

  • Photoshop CS4 no longer runs on iMac

    I had a fan issue on my iMac and after speaking with two different agents the last one had me move some files to the trash. Now Photoshop CS4 will no longer run. Operating system: OS10.7.5. Can't reinstall from the disks. Anyone know how to fix this?

  • Cts 3010 ligthing panels persistently on

    Hello friends I got a problem regarding with cts 3010's ligthing panel as they didnt switch off when the call was hanged up. They are on persistently. When I checked the cable connection between the primary codec and ACU, I didnt see any issue. I nee

  • HT1296 I have been able to sync my contacts & notes on Outlook to my iPhone - but not my calendar entries!  Nothing is going in - what's up?

    I set up my iTunes to sync from my Outlook program. Contacts & Notes went in just fine.  Calendar didn't go in at all and I had it selected the same as the others.  Is there a setting I need to change in Outlook to make this happen?