IPhone SDK - Drawing images

Hello.
I'm a beginner in Cocoa and Objective-C programming.
I have to develop an application where I have to draw a map (a simple JPEG image) on the screen. I want to be able to zoom in and out on that map and to be able to move on that map by moving a finger on the screen.
My image is a UIImage object.
I tried two methods :
- I created an UIImageView initialized with a CGRect (with its bounds corresponding to where I wanted to draw my image) and I added that UIImageView to my main view.
It works well but when I want to zoom or to move on my image, I have to recreate always a new UIImageView with the new bounds, which uses a lot of resources.
- I tried to override the drawRect method and in that method I tried to draw my image by using its drawInRect method with the CGRect object but it doesn't seem to have the same effect as creating an UIImageView with the same CGRect : the image is not resized to fill the rectangle.
Could someone help me to understand that please ?
Thank you.
Patrick Schevenels.

Thank you. I didn't know that property because it didn't appear in the code completion suggestions.
Now, I still have a little problem : when I handle the touch events with the following code, I have a vibration effect on my image when I move it :
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
ancienpoint=touch.locationInView;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [[event allTouches] anyObject];
nouveaupoint=touch.locationInView;
facteuroriginehorizontale += nouveaupoint.x-ancienpoint.x;
facteurorigineverticale += nouveaupoint.y-ancienpoint.y;
[self rafraichissement];
ancienpoint=nouveaupoint;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
"rafraichissement" is the name of the method to refresh the screen where I create a new CGRect with the new bounds (I add facteuroriginehorizontale to the previous x and facteurorigineverticale to the previous y) and I change the frame property of my image view.
Thank you for your answer.
Patrick Schevenels.
Message was edited by: pscheven

Similar Messages

  • IPhone SDK disk image size?

    Hi everyone, thanks in advance for the assistance.
    I've tried downloading the iPhone SDK about 4 times now (using Safari). Each time, Safari indicates that the download is complete. But when I attempt to mount the disk image, I keep getting an error that says the disk image failed to mount. The reason simply states "not recognized".
    The DMG file size is 2,147,484,366 bytes. I'm not sure if this is correct, but I've tried 4 times now, and each file is exactly the same size.
    Can anyone provide any advice? Thanks very much.

    No, not at all. Just plain old Safari (and attempted from plain old Firefox too).
    I'm still having the same problem.
    Here's what I've considered so far and ruled out as possible problems:
    1) Browser issue - tried on both Firefox, Safari
    2) Network issue - used both my ISP & my office network
    3) Hard drive space issue - but it has 23GB free
    4) The source file has a problem - but surely someone else would have experienced the same problem as me.
    My next 'tests' will be:
    5) Can my drive store files larger than 2GB?
    6) Can I download it correctly on another mac?
    7) Can I download it correctly on a Windows/Linux machine?
    8) Email Apple and ask them for help.
    If anyone can suggest any explanation or reason for this, I'd really appreciate it. I don't know enough to suggest a reason why my browser reports a complete download, but the file is short 0.1GB.

  • Learning iPhone SDK - Trying to draw an image

    Although I have programmed for Mac in the last years, I have never used Mac-specific technologies as Cocoa (I have programmed more in OpenGL, SDL, and the like).
    Now I am getting started with the iPhone SDK. I'd like to do some OpenGL|ES stuff, but since it is not supported in the Simulator, and you need to join the Developer Program to test stuff on directly on the device (and admission of new members is closed right now), I am focused on other stuff right now, like using Core Graphics for drawing images on the iPhone.
    My application is based on the Cocoa Touch Application template. I left the default code except for a few changes.
    In file "UntitledAppDelegate.m", I have changed the method applicationDidFinishLaunching to:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    contentView = [[[MyView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
    [window addSubview:contentView];
    [window makeKeyAndVisible];
    Then, in the MyView interface file (MyView.h), I have added the attribute "UIImageView* image;" to the class, which is declared as a property, and synthesized.
    In the class implementation (MyView.m), I have changed the method initWithFrame to:
    - (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    self.backgroundColor = [UIColor darkGrayColor];
    image = [self loadImageView:@"box01.png"];
    [self addSubview:image];
    return self;
    loadImageView is a private method I have implemented as:
    - (UIImageView *)loadImageView:(NSString *) imageName {
    UIImage *img = [UIImage imageNamed:imageName];
    UIImageView *theView = [[UIImageView alloc] initWithImage:img];
    return theView;
    Since I have loaded the UIImage, and initialized a UIImageView with it, and the image view is added as a subview of the main view attached to the window, I thought it should be everything needed to draw an image on the screen. But nothing is visible. The screen is simply black when I run this on the Simulator. It doesn't even set the background to dark gray.
    So I need some help with this, I sure that anyone with experience in Mac programming will know how to help me.
    Thank you in advance.
    Message was edited by: Jedive

    I removed the XIB file from the project, but that didn't help. It was a problem with my inexperience with Objective-C. When accessing class properties in a method of the same class, i was not putting "self." before the property (in C++ that's redundant). For example, in the line "window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];". After adding it, it works correctly.

  • [iphone] draw Images - tile based game

    Hello,
    i am trying to create a simple puzzle game.. and i have an int[8][8] array that reprents the map.
    each cell has a value which represents some item.
    now i want to draw this map on the screen, i have an image file for each item. (each item has the same width and height)
    i tried to do this with creating a UIImageView for each cell and add it to the View.
    But what shall i do if the puzzle changes (it changes after each move.. so very often)? Remove all UIImageViews and create new? I do all the logic with the int[][] map..
    What would you reccommend me ?
    Thank you,
    chris

    The OpenGL view can be the EAGLView from the basic OpenGLES sample provided with the iPhone SDK or the basic NSOpenGLView : those you can find easilly, then I post only what is specific to Textures :
    //somewhere when your GLView first opens or when you decide to change your texture
    // Generate 1 "Name" for your texture : an OpenGL feature
    glGenTextures(1, TextureName); // => GLuint TextureName[1]; : a member
    glBindTexture(GLTEXTURE2D, TextureName[0]); // Link the name with the current 2D Texture OpenGL with work with (as soon as you enable Texture. See further)
    glTexImage2D(GLTEXTURE2D, 0, GL_RGB, imageWidth,
    imageHeight, 0, GL_RGB, GLUNSIGNEDBYTE,
    pixels); // Generate a Texture from your "Pixels" table. Must be a on dimension array : Byte[imageWidth x imageHeight]
    glTexParameterf(GLTEXTURE2D,
    GLTEXTURE_MINFILTER, GL_LINEAR); // Some standard parameters. See doc
    glTexParameterf(GLTEXTURE2D,
    GLTEXTURE_MAGFILTER, GL_LINEAR); // the same
    And later, when you are ready to display :
    -(void)DrawImage{
    // any draw you will make will be "textured", including lines. If you want to texture only some specific thing, encapsulate your feature between a glEnable() / glDisable() block.
    glEnable(GLTEXTURE2D);
    // These coords match the box ones. A basic texture has these coords. It's your duty to make them match the surface your want to display (if the target surface is not a squate, then the texture will be distorted to match it
    GLfloat texCoords[] = {
    0.0f, 0.0f,
    1.0f, 0.0f,
    0.0f, 1.0f,
    1.0f, 1.0f };
    //The surface that will be "textured"
    GLfloat box[] = {
    -1.0f, -1.0f, 0.0f,
    1.0f, -1.0f, 0.0f,
    -1.0f, 1.0f, 0.0f,
    1.0f, 1.0f, 0.0f};
    // SOme standard nice features
    glEnable(GLDEPTHTEST);
    glDepthFunc(GL_LEQUAL);
    glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
    glClearDepthf(1.0f);
    // store the coords (you could also use a glBegin() + glVertexx + glEnd() Block (see doc)
    glVertexPointer(3, GL_FLOAT, 0, box);
    glTexCoordPointer(2, GL_FLOAT, 0, texCoords);
    // Set tome boolean so that OpenGL is read to draw our coords
    glEnableClientState(GLVERTEXARRAY);
    glEnableClientState(GLTEXTURE_COORDARRAY);
    // Red is nice
    glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
    // Light (if some is implemented) will be reflected along the 'z' axis
    glNormal3f(0.0f, 0.0f, 1.0f);
    // At least!
    glDrawArrays(GLTRIANGLESTRIP, 0, 4);
    // Finish
    glFlush ();
    Hope this will help. If you miss something, I'll try to help

  • Image Filter, iPhone SDK

    Hi all,
    What should be the best way to implement Edge Detection Filter for an iPhone app?
    It seems neither Core Image nor Fragment Shader is available in iPhone.

    No. At least not publicly exposed. Core-Image is part of QuartzCore.framework, which although is present in iPhone SDK but it doesn't contain the Core-Image headers. The reason I can think of is that Core-Image filters are primarily meant to run on GPU. May be - not supported on iPhone's arm processor's. May be.
    - Vijay

  • Problem in iPhone SDK Sample: [CrashLanding ]

    iPhone SDK build : build 9M2199a
    Sample: CrashLanding
    Version: 1.7
    OpenGL swap buffer method seems to fails sometimes resulting in a crappy blink display. The display seems split into two images. The screen goes messy, I can view the backbuffer blinking over frontbuffer with no drawing update on it.
    Thanks,
    Julien Meyer
    Jadegame.com

    I developed my application based on the CrashLanding sample. I have inherited the same rendering failure. The swap occurs, but it's presenting stale data for one of the frames. The stale data appears to be the first frame rendered. The failure occurs either immediately, or not at all. Restarting the application usually makes the problem go away.
    Has anyone determined a fix for this?
    Thank you,
    Joel-

  • Round triangle in iPhone SDK

    Hi,
    I'm a newbie to iPhone app development. How do you draw a rounded triangle using iPhone SDK? CGRect draws the normal rectangle.
    Thanks.

    to your comment.. you have to code that triangle either way if we're talking about diff screen devices down the road.. still just as simple to resize an image resource unless it's already a built-in iPhone/touch resource.. which if that were the case I'm with you all the way!
    john

  • IPhone SDK 2.2 memory corruption

    Hello. I'm working on an application for iPhone SDK 2.2 and seem to be having weird memory corruption problems. Not necessarily leaks because using Instruments shows my memory stamp never going above about 1.8 megs. The nature of the app is a database of animals so I'm constantly loading and unloading sounds and images. None of the objects are very large (at most I'll have 4 800k pngs loaded at once) and I've checked and rechecked my alloc/retain/release and everything is in order (hence no memory usage increase). However...after using the application for a while I'll notice strange behavior. For example:
    1) we have a UILabel as the title for each page. After a while the font size of this will change.
    2) I have several screens with a subclassed UIScrollView where images are loaded and then added to. The problem shows itself here by the images not showing up. there's no crash, stepping through the debugger shows that the image loads up fine, it's just that the image is not there.
    3) I have a UILabel at the top of an animal description screen, which in the nib file is called "Animal Name" by default. This will change to show "Animal Name" at the top.
    I've removed all audio in our latest build so that isn't the problem. What I'm starting to suspect is that altering anything defined in a nib file will cause corruption. For example, the UIScrollView is defined in the nib file, and I constantly am reassigning the contents of that with a UIImageView. This UIImageView is handled within the subview class like :
    UIImageView *imgView = [[UIImageView alloc] initWithImage: [ UIImage imageWithContentsOfFile:[[NSBundle mainBundle ] pathForResource:imageToLoad ofType:@"png" ]] ];
    imgView.tag = 50;
    [self addSubview:imgView ];
    [ imgView release ];
    Then later when moving away from the screen I'll find that view's tag and remove it from the superview (since addSubView increases the retain count, the alloc+addSubView is cancelled by release+removeFromSuperView)
    I can't explain why titles that are never changed would be affected, but it must somehow be related. What I'm wondering is: are there any known issues involving modification of the contents of objects defined in Nib files? Perhaps the memory allocated when initWithNibName is restrained, then any modification of objects allocated within it can cause corruption. I'm starting to think I should just alloc and free anything modified in code and skip using nib files altogether (I reset the text on buttons for example). If this is a known issue please let me know. I'll give you more information if I can.
    Thank you

    Just download the huge SDK package and install. No need to uninstall the old SDK.

  • IPhone SDK Download Problems

    I have just made the account and started the long download process for the iPhone SDK. When I download the file and it completes the process, I click on it and it says Disk Image not able to mount. I tried that three more times and it still won't open. Any suggestions?

    Another victim here. Happily started downloading iphone SDK just after purchasing my new MacBook and it always stops at 2.1 GB. And of course it is corrupted.
    For those who are thinking about OS or firewalls, here are my trials:
    1. From my MacBook at home
    2. From my HP laptop at home
    3. From my desktop at home
    4. From my HP laptop at work
    5. From my Ubuntu at home
    6. From my Ubuntu virtual machine at work.
    Do you think it is still a client problem? Or the version on the server is corrupted?

  • IPhone SDK - trouble working with iPod Touch 2G

    Hello, new Macbook OSX 10.5.4, new iPod Touch running iPhone OS 2.1. Just downloaded and installed xcode 3.1.1 and newest iPhone SDK.
    I read the iPhone OS Pre-Installation Advisory document found here:
    http://developer.apple.com/iphone/download.action?path=/iphone/iphoneos_software_preinstallation_advisory/iphone_os_2.1_preinstallationadvisory.pdf
    I created shortcut:
    .../iPhoneOS.platform/DeviceSupport/2.1.1/
    pointed to:
    .../iPhoneOS.platform/DeviceSupport/2.1/
    Checked the shortcut, it works.
    Start xcode, open Window->Orgnizer. "Xcode cannot find the software image to install this version" is showing up just below the "Software Version" line. Software version has a value of 2.1.1 (5F138).
    If I ignore this and continue to build, sign and try the application. I will receive an error message "Your mobile device has encountered an unexpected error (0xE800003A) during the install phase: Verifying application" I tried disconnect the iPod Touch, power off, power on. Same problem.
    I tried to make a complete copy in (not a shortcut):
    .../iPhoneOS.platform/DeviceSupport/2.1.1/
    Same problem.
    What should I do to trace this issue?

    I wanted to compile and upload the sample app Accelerometer Graph onto my brand new ipod touch 16.
    I got the notorious error (0xE800003A) during the install phase, verifying.
    i checked all the product id#'s which i just copied/pasted when creating the certificates etc.... so i don't know what's wrong... so what IS wrong?
    here's the logs:
    ==== Attached at 2008-09-25 17:04:27 -0400 ====
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: urn IOSDIOController::enumerateSlot(UInt8, bool): Found SDIO I/O device. Function count(2), memory(0)
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: IOReturn IOSDIOIoCardDevice::parseCIS(): Device manufacturer Id(4d50), Product Id(4d48)
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleBCM4325::init(): Starting with debug level: 4, debug flags: 00000000
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleBCM4325::start()
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleBCM4325::initHardware(): BCM4325 revision D0
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: read new style signature 0x43313131 (line:281)
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: [FTL:MSG] VSVFL Register [OK]
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: [FTL:MSG] VFL Init [OK]
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleMultitouchZ2SPI: detected HBPP. driver will be kept alive
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleMultitouchZ2SPI: enabled power, scheduled bootloading
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: BCM4325 Firmware Version: wl0: Sep 1 2008 14:42:30 version 4.173.4.0
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleBCM4325::initFirmware(): successful initialization
    Thu Sep 25 17:04:17 unknown com.apple.launchd[1] <Notice>: Bug: launchd.c:228 (23506):19: mount("fdesc", "/dev", MNT_UNION, NULL) != -1
    Thu Sep 25 17:04:18 unknown com.apple.launchctl.System[2] <Notice>: Bug: launchctl.c:2907 (23614):2: sysctl(nbmib, 2, &nb, &nbsz, NULL, 0) == 0
    Thu Sep 25 17:04:18 unknown com.apple.launchctl.System[2] <Notice>: /dev/disk0s1 on / (hfs, local, read-only, noatime)
    Thu Sep 25 17:04:18 unknown com.apple.launchctl.System[2] <Notice>: /dev/disk0s2 on /private/var (hfs, local, nodev, nosuid, noatime)
    Thu Sep 25 17:04:18 unknown com.apple.launchctl.System[2] <Notice>: launchctl: Couldn't stat("/etc/mach_init.d"): No such file or directory
    Thu Sep 25 17:04:19 unknown com.apple.launchd[1] <Warning>: open("/var/logs/BTServer/stdout", ...): No such file or directory
    Thu Sep 25 17:04:19 unknown com.apple.launchd[1] <Warning>: open("/var/logs/BTServer/stderr", ...): No such file or directory
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleBCM4325: Ethernet address 00:22:41:c3:88:2c
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleBCM4325::setPowerStateGated() : Powering On
    Thu Sep 25 17:04:19 unknown mDNSResponder mDNSResponder-178.2 (Aug 10 2008 22:56:13)[17] <Error>: starting
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleMultitouchZ2SPI: downloaded 128 bytes of prox calibration data ("built-in")
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleMultitouchZ2SPI: downloaded 256 bytes of calibration data ("built-in")
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleD1759PMUPowerSource: AppleUSBCableDetect 1
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleSynopsysOTG2::handleUSBCableConnect cable connected, but don't have device configuration yet
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleMultitouchZ2SPI: downloaded 48612 bytes of firmware data ("0x0051.bin") in 149ms.
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: AppleS5L8720XFMSS::_fmssInitCmdsAndCEMaskCtrl: VendorSpecific: VSCMDSIMPLE
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: [FTL:MSG] VFL_Open [OK]
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: [FTL:MSG] YAFTL Register [OK]
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: [FTL:MSG] FTL_Open [OK]
    Thu Sep 25 17:04:19 unknown /usr/sbin/fairplayd[20] <Notice>: Vroum
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: Got boot device = IOService:/AppleARMPE/arm-io/AppleS5L8720XIO/flash-controller0@A00000/AppleS5L8 720XFMSS/disk@FF/AppleNANDFTL/IOFlashBlockDevice/IOBlockStorageDriver/unknown vendor unknown product Media/IOFDiskPartitionScheme/Untitled 1@1
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: BSD root: disk0s1, major 14, minor 1
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: Jettisoning kernel linker.
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: mDNSResponder[17] syscallbuiltinprofile: mDNSResponder (seatbelt)
    Thu Sep 25 17:04:19 unknown kernel[0] <Debug>: mDNSResponder[17] Builtin profile: mDNSResponder (seatbelt)
    Thu Sep 25 17:04:20 unknown com.apple.BTServer[26] <Notice>: BTServer 1.2 () Modified on
    Thu Sep 25 17:04:20 unknown com.apple.BTServer[26] <Notice>: com.apple.server.bluetooth: Bluetooth Super Server Robot Destroyer
    Thu Sep 25 17:04:20 unknown com.apple.BTServer[26] <Notice>: com.apple.server.bluetooth: Got local-mac-address: 00:22:41:c1:42:29
    Thu Sep 25 17:04:20 unknown com.apple.BTServer[26] <Notice>: machport is com.apple.server.bluetooth
    Thu Sep 25 17:04:20 unknown lockdownd[15] <Error>: (0x3941d6d0) lookupimei: Could not get matching service for baseband
    Thu Sep 25 17:04:21 unknown mDNSResponder[17] <Error>: Note: SetDomainSecrets: no keychain support
    Thu Sep 25 17:04:21 unknown com.apple.BTServer[26] <Notice>: Cannot read termcap database;
    Thu Sep 25 17:04:21 unknown com.apple.BTServer[26] <Notice>: using dumb terminal settings.
    Thu Sep 25 17:04:22 unknown com.apple.BTServer[26] <Notice>: Opening /dev/cu.bluetooth @ 115200 baud.
    Thu Sep 25 17:04:22 unknown com.apple.BTServer[26] <Notice>: bluetooth wake is now ON
    Thu Sep 25 17:04:22 unknown com.apple.itunesstored[18] <Notice>: Couldn't open shared capabilities memory GSCapabilities (No such file or directory)
    Thu Sep 25 17:04:22 unknown com.apple.BTServer[26] <Notice>: bluetooth reset was pulsed 100 ms
    Thu Sep 25 17:04:22 unknown com.apple.BTServer[26] <Notice>: Issued HCI Reset
    Thu Sep 25 17:04:22 unknown com.apple.BTServer[26] <Notice>: Sending UpdateUART_BaudRate
    Thu Sep 25 17:04:22 unknown com.apple.BTServer[26] <Notice>: Setting local baud rate
    Thu Sep 25 17:04:23 unknown configd[21] <Notice>: CLTM: No thermal sensors detected, not registering for notifications
    Thu Sep 25 17:04:24 unknown kernel[0] <Debug>: en0: setting diversity to: -1
    Thu Sep 25 17:04:24 unknown lockbot[30] <Error>: copy_preference: Could not ssetgid to 501: Operation not permitted
    Thu Sep 25 17:04:24 unknown kernel[0] <Debug>: en0: setting tx antenna: -1
    Thu Sep 25 17:04:24 unknown lockbot[31] <Error>: copy_preference: Could not ssetgid to 501: Operation not permitted
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80be00) sanitizedevicename: Could not convert device name into buffer
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80cc00) calculateapplicationusage: Calculating the application usage
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80be00) ping_configd: Could not sanitize device name
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80be00) load_systemversion: Could not lookup release type
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80be00) extract_recordidentifier: Could not extract ICCID from account token
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80be00) loadactivationrecords: Could not extract ICCID from record
    Thu Sep 25 17:04:24 unknown lockdownd[15] <Error>: (0x80be00) loadactivationrecords: This is the iPod activation record
    Thu Sep 25 17:04:24 unknown configd[21] <Notice>: setting hostname to "iPod"
    Thu Sep 25 17:04:25 unknown lockdownd[15] <Error>: (0x80be00) determineactivationstate: The original activation state is Activated
    Thu Sep 25 17:04:25 unknown lockdownd[15] <Error>: (0x80be00) determineactivationstate: SIM status: kCTSIMSupportSIMStatusReady
    Thu Sep 25 17:04:25 unknown lockdownd[15] <Error>: (0x80be00) determineactivationstate: The activation state has not changed.
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 - Configuration: PTP
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 Interface: PTP
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 - Configuration: iPod USB Interface
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 Interface: USBAudioControl
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 Interface: USBAudioStreaming
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 Interface: IapOverUsbHid
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 - Configuration: PTP + Apple Mobile Device
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2 Interface: AppleUSBMux
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::gated_registerFunction Register function USBAudioControl
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: IOAccessoryPortUSB::start
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::gated_registerFunction Register function IapOverUsbHid
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: virtual bool AppleUSBDeviceMux::start(IOService*) build: Aug 10 2008 22:34:20
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: init_waste
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::gated_registerFunction Register function USBAudioStreaming
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::gated_registerFunction Register function AppleUSBMux
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::gated_registerFunction Register function PTP
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::gated_registerFunction all functions registered- we are ready to start usb stack
    Thu Sep 25 17:04:26 unknown kernel[0] <Debug>: AppleSynopsysOTG2::handleUSBReset
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Current Device: UART - /dev/cu.bluetooth
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Setting speed to 115200
    Thu Sep 25 17:04:26 unknown /usr/libexec/ptpd[12] <Notice>: PTP interface bas been activated at high speed.
    Thu Sep 25 17:04:26 unknown SpringBoard[22] <Warning>: Not monitoring for AOS notifications since they are not enabled by user defaults.
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Sending UpdateUART_BaudRate
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Setting local baud rate
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Using env variable: BTDEVICEADDRESS = 00:22:41:c1:42:29
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Sending WriteBDADDR
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Using host name: iPod
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Sending WriteLocalName: iPod
    Thu Sep 25 17:04:26 unknown com.apple.BTServer[26] <Notice>: Sending SetSleepmodeParam
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: com.apple.server.bluetooth: Server attached, going into msg loop.
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: Cannot read termcap database;
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: using dumb terminal settings.
    Thu Sep 25 17:04:27 unknown afcd[35] <Error>: user mobile has uid 501
    Thu Sep 25 17:04:27 unknown afcd[35] <Error>: mode is 0x41e8
    Thu Sep 25 17:04:27 unknown configd[21] <Notice>: WiFi: Currently not associated. Beginning auto join sequence.
    Thu Sep 25 17:04:27 unknown configd[21] <Notice>: WiFi: External power source attached
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: Opening /dev/cu.bluetooth @ 2400000 baud.
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: bluetooth wake is now ON
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: Issued HCI Reset
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: Sending SetSleepmodeParam
    Thu Sep 25 17:04:27 unknown com.apple.BTServer[26] <Notice>: bluetooth wake is now OFF
    Thu Sep 25 17:04:28 unknown lockdownd[15] <Error>: (0x81c200) set_timezone: Setting the time zone to /usr/share/zoneinfo/US/Eastern
    Thu Sep 25 17:04:28 unknown com.apple.mediaserverd[16] <Notice>: mediaserverd: 17:04:28.136 StreamUSBAspen.cpp[163]: GetCurrentPhysicalFormat(): ERROR: No HAL stream format corresponding to the current iAP digital audio sample rate 0 Hz
    Thu Sep 25 17:04:32 unknown itunesstored[18] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x10c620>. posting local notification for distributed notification: com.apple.itunes-mobdev.syncWillStart
    Thu Sep 25 17:04:32 unknown iapd[19] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x20b290>. posting local notification for distributed notification: com.apple.itunes-mobdev.syncWillStart
    Thu Sep 25 17:04:32 unknown afcd[56] <Error>: user mobile has uid 501
    Thu Sep 25 17:04:32 unknown afcd[56] <Error>: mode is 0x41e8
    Thu Sep 25 17:04:34 unknown SpringBoard[22] <Warning>: lockdown says the device is: [Activated], state is 3
    Thu Sep 25 17:04:34 unknown /System/Library/CoreServices/SpringBoard.app/SpringBoard[22] <Notice>: CLTM: initial thermal level is 0
    Thu Sep 25 17:04:35 unknown securityd[32] <Error>: misagent[60] SecItemCopyMatching: missing entitlement
    Thu Sep 25 17:04:36 unknown SpringBoard[22] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x232830>. posting local notification for distributed notification: com.apple.itunes-mobdev.syncWillStart
    Thu Sep 25 17:04:36 unknown SpringBoard[22] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x232830>. auto-generating notification 'com.apple.itunes-mobdev.syncWillStart' for (
    <SBSyncController: 0x2ad960>
    Thu Sep 25 17:04:36 unknown itunesstored[18] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x10c620>. posting local notification for distributed notification: com.apple.springboard.syncingUnblocked
    Thu Sep 25 17:04:36 unknown iapd[19] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x20b290>. posting local notification for distributed notification: com.apple.springboard.syncingUnblocked
    Thu Sep 25 17:04:37 unknown SpringBoard[22] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x232830>. posting local notification for distributed notification: com.apple.springboard.syncingUnblocked
    Thu Sep 25 17:04:37 unknown SpringBoard[22] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x232830>. auto-generating notification 'com.apple.itunes-mobdev.syncWillStart' for (
    <ABRingtoneManager: 0x2c5660>,
    <SBVODController: 0x2c5d70>
    Thu Sep 25 17:04:37 unknown SpringBoard[22] <Warning>: INFO:: ITSyncHelper <ITSyncHelper: 0x232830>. posting local notification for distributed notification: com.apple.itunes-mobdev.syncWillStart
    Thu Sep 25 17:04:37 unknown securityd[32] <Error>: mobileimagemou[54] SecItemCopyMatching: missing entitlement

  • IPhone SDK with iPod Touch 2G problem

    I installed the SDK last night but when I went to plug in my iPod Touch 2G, I got the error message: 'Unable to locate a suitable developer disk image. Please re-install the SDK'
    I have reinstalled the SDK many times but still get the same error message. Any help appreciated.
    Thanks

    {quote}He's talking about the iPod Touch, not a regular iPod{quote}
    Yep, I know. Do a Google search for "Unable to locate a suitable developer disk image". Found this on the comments of [this blog post|http://www.tbradford.org/2008/03/iphone-sdk-beta-2-possible-ppc-fix.html]:
    {quote}
    If anyone else runs into the "Unable to locate a suitable developer disk image." problem, there's a package called "DeveloperDiskImage" in the iPhone SDK that needs to be installed.
    As of 2.1, these are the extra packages that you need to install manually:
    iPhoneSDKHeadersAndLibs
    iPhoneSimulatorPlatform
    iPhoneHostSideTools
    iPhoneDocumentation
    DeveloperDiskImage
    {quote}
    Another [blog post|http://khakionion.blogspot.com/2008/09/iphone-sdk-21-doesnt-include-ipod-t ouch.html#links] says:
    {quote}
    The problem is that the huuuuuge iPhone SDK 2.1 installer doesn't come with the iPod touch 2.1 firmware image. Suck. Fear not, though: All you have to do is force iTunes to do a firmware restore, which will download the appropriate image. On next launch, Xcode will find it and everything will work great.
    {quote}

  • Iphone sdk 3.2 wont download after 2.35 gb

    hi i am downloading iphone sdk 3.2 it says 3hours and 20 minutes required to complete 2.31 gb but downloads get beyond 2.31 gb to 2.35 gb and after that it hangs and when i stopped it and resume it again then it says no server connection for that,then i just remove .download n make it .dmg n double clicked on that then it says image not recognised, then i again put .download in front of .dmg then it start downloading through the beginning wat should i do now?
    Message was edited by: funmania

    Do you have at least 5 GB of free space on your hard disk? Preferably more.

  • Release memory in iPhone SDK

    Hi,
    1. I want to release previous memory before I redraw the screen. Is this the right way to do it using iPhone SDK?
    [self.securityCodeView release];
    self.securityCodeView = [[SecurityCodeView alloc] initWithFrame:Frame];
    [self addSubview:securityCodeView];
    [\b]
    2. How do I refresh the screen without having to ALLOC memeory again? For example, I draw the screen ([self addSubview:securityCodeView]) and after one second, the screen needs to be redrawn (what statement to use?).
    3. How do you retain some UIViews without redrawing since they don't need to be redrawn again (what statement to use)? For example, backgroundView needs not to be redrawn.
    Thank you.

    I would suggest you read the docs on Memory Management on Obj-C. Basically anything you allocate explicitly will remain allocated (with a ref count of 1) until you explicitly do a release:
    [myView release];
    When you add a view to another view's subview, that view's ref count is incremented. So you can safely release the added view and yet use the references to the object throughout the code (as long as the parent view is not released/deallocated).

  • IPhone SDK crashes?

    When I try to open the photos app on the iPhone SDK, a warning comes up and says and try to save an image from Mobile Safari by click-holding an image until it says "Save Photo" Safari crashes and it says "MobileSafari quit unexpectedly." How can I fix this? I have the latest iPhone SDK update.

    Found a solution.
    I reload the table before i ask it to scroll to a position.
    - (void) setOrdinal:(jint) topItem {
    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:topItem inSection:0];
    [tableView reloadData];
    [tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
    The setOrdinal method is called by the user of the view containing the table.
    This works just fine.
    Thanks to all who took time to read this post.
    -TRS

  • [iPhone SDK] Preference view design/implementation

    Hi, everyone!
    I want to add preference view in my application (build on iPhone SDK 3.0), but don't want to use preference bundle for several reasons.
    And I can't find any suitable UI component to do it (maybe it's UITableView with custom views (with rounded corners)?
    Any thoughts on it?
    Thanks for attention.
    Have a good day

    The rounded corners you see in the system Settings app are produced by a UITableView created with UITableViewStyleGrouped. Each group of cells in a rounded frame is a section of the table view, so you can duplicate a typical Settings page by setting the number of sections and the number of rows per section.
    It looks like you could build most of the cells in Settings by simply adding your own images and/or controls to standard UITableViewCell instances.
    Several of the pages in the UICatalog sample app provide good examples of how to code Grouped style table views with cells similar to some of the Settings cells. That sample code is for 3.0, btw, but almost all of the code is appropriate for 2.x as well.
    If you need help with table views and table view cells in general, see the Table View Programming Guide for iPhone OS.
    For more basic instruction, see Chapter 8 of +Beginning iPhone Development: Exploring the iPhone SDK+ by Mark and LaMarche.

Maybe you are looking for

  • Radius and Internet sharing not compatible

    I have 2 MBPs connected to a Leopard Server via an AEBS. I want to connect a third ethernet device using internet sharing on one of the MBPs Couldn't get it to work unless I switched of RADIUS authentication and downgrade to WPA/WPA2 personal key. Wh

  • URL for data store in content Server

    Dear Experts, I m using this content server to connect with the Portal 7.0, as I m working with LSO and my content server is working fine as below.... serverType="SAP HTTP Content Server";serverVendorId="Copyright SAP AG, All rights reserved 1998, 20

  • Help with intricate search and results display

    Hi All, I am looking for help with a problem I have, my knowledge on Numbers is limited, I have learnt a lot by trial and error but I do not know where to start on this problem. What I am trying to do is display result from sheet 1 onto sheet 2 when

  • How to change Queue in WM

    hi, IN WM RF scanning functionality, we are assigning users to Queue. how to change the Queue of one user to another user. and how system guided picking/putaway will activated automatically? what config needs to be done reg

  • Release Strategy in "two currencies"

    Hi All, We have a requirment to create Purchase Order release strategies for two plants in different company codes- different currencies. For that purpose we made two characteristics with table CEBBAN and field GFWRT and used the currency USD and GBP