IPhone SDK: UIScrollView not scrollable as a UINavigationBar title view?

I have a custom UIView that has a UILabel in a UIScrollView. This view works fine under normal circumstances.
When I set an instance of this view as the navigationItem.customTitleView of UIViewController, the view appears as the title on the navigation bar, but I can no longer scroll the view.
Any ideas? Are there restrictions on navigation bar custom views that were not described in the docs? I don't recall reading any limitations.

bump

Similar Messages

  • IPhone SDK: UIScrollView, zooming works on simulator but not device

    I've got a UIScrollView set up to zoom an image. It worked fine under Beta 5, both on an iPod Touch and in the simulator.
    In Beta 6, after changing the method scrollViewWillBeginZooming to viewForZoomingInScrollView the zoom works fine in the simulator, but it does not work on the iPod.
    Any ideas?

    Excited to hear that you were able to zoom image.
    I am ****** off, sure because I am new in this.
    I got one UIImageView in UIView.
    And I can display Images.
    I like to implement the pinch and zoom function.
    From my googling I understood that UImageView should be inside a UIScrollView
    But I dont have any idea how to do that.
    Can you please send me the sample code for doing the same.
    Thanks in advance.
    If you guys no some books to refer , please inform me.
    Expecting your help

  • IPhone SDK will not let me build to simulator (SDK 2.2.1).

    I have the Apple Dev free account and properly downloaded the SDK 2.2.1 final from Apple Developer Connection. Before you say way to old of a SDK, I am required to use it for various reasons.
    In my project setting I have it set to debug and simulator 2.2.1
    But I click build and the simulator opens (on the dock running) but it says no provisioned iPhone device connected.
    I am REQUIRED to use this old SDK
    What I have done to try and fix this
    1. reinstall Xcode
    2. Clean all targets
    3. wipe system fresh with leopard and xcode
    All lead to the same result
    PLEASE help, thank you in advance

    The simulator will not support back that far...read the 'About Xcode' file in the /Developer folder.
    But I'm curious why you want to do that...you can no longer upload apps to the store using that very old SDK, and the numbers of anyone still using it are almost nil now.
    If you must test, you must use a device that is still that far back on the OS. At some point, you will need to use current tools and a current iOS on a current device.

  • [iPhone SDK] UIScrollView to look like in Safari

    UIScrollView seems to be setup to page through views that have pages the same size of the UIScrollView. But in Safari, the pages are about a half the size of the screen width. With a quarter of the screen margins on the left and right. This allows it to show a portion of the pages to the left and right of the current page. How can I set this up?

    Anybody?

  • IPhone SDK on PPC

    Hi,
    I am fully aware that the iPhone SDK is NOT supported on PowerPC based macs.
    I have read several tutorials on how to make it work (including http://3by9.com/85/), but I have found something quite annoying.
    All of the tutorials refer to a package named "Aspen Simulator", but it is NOT in my "Packages" folder of the SDK I downloaded. Also, tutorials say the install is about 5 gig, mine was four gig.
    My best guess is that the tutorials were made for the beta versions of the iPhone SDK.
    How can I develop iPhone Apps on a PPC based mac? I do NOT want to put them on the App Store, I am just eager to experiment.
    Thank you.

    Thanks! I managed to get the simulator running!
    Just need to clarify one last thing:
    To test on my iTouch, I need to pay the $99 fee right?

  • IPhone SDK installation problem

    Hi All,
    I have a problem installing the iPhone SDK.
    In the installation process, "Installation Type" page, the page you can choose modules either you want to install or not. I see "iPhone SDK" module is listed, but i couldn't select it, it's greyed out and it is not checked by default. So i had to continue like this, after installation, i couldn't open any iPhone sample code at all. XCode said i don't have iPhone SDK installed.
    I downloaded the SDK from ADC days ago.
    I upgraded my mac to 10.5.4, also upgraded iTunes to 7.7
    are there any other prerequisites?

    excuse me i'm quite new to this community.
    you mean the iphone sdk can not be installed on apple's own hardware?
    is apple switching the focus to x86 architecture? are there any background information that i should take a look at?
    appreciate it.

  • IPhone SDK certifikate problem

    Hello,
    sorry my english is not the best.
    I made a distribution_identity.cer and a developer_identity.cer in the apple developer portal.
    After downloading, i clicked every certificate twice.
    In Xcode i colud not find any certificate in the projekct options.
    Please help me

    excuse me i'm quite new to this community.
    you mean the iphone sdk can not be installed on apple's own hardware?
    is apple switching the focus to x86 architecture? are there any background information that i should take a look at?
    appreciate it.

  • IPhone SDK 3.1.3 XCode 3.2.1 Snow Leopard update (lcrt1.10.6.o not found)

    Today I downloaded the iPhone SDK 3.1.3 XCode 3.2.1 Snow Leopard update.
    After installing it, I looked in the Project Info. In the Deployyment section, the "Mac OS X Deployment Target" is set to "Max OS X 10.5".
    Naturally, as fussy I am, I changed it to Mac OS X 10.6, which is what I want. After Building, it reports an ld error: i.e.
    ld: library not found for -lcrt1.10.6.o
    Why does this happen? Did others have the same experience?
    Is this normal or how to fix? (Other than the obvious step to go to look for the missing library and try to install it myself).

    iPhone Dev Center
    Downloads
    Read me before downloading
    If you have updated your device to iPhone OS 3.1.3 with iTunes, you must install iPhone SDK 3.1.3 in order to continue with your development.
    *iPhone SDK 3.1.3*
    iPhone SDK 3.1.3 includes the Xcode IDE, iPhone simulator, and a suite of additional tools for developing applications for iPhone and iPod touch.
    _Posted: February 2, 2010_
    Leopard Build: 9M2809a
    Snow Leopard Build: 10M2003a
    *Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.1.4
    iPhone SDK 3.1.3 with Xcode 3.1.4 Readme
    *Snow Leopard Downloads*
    iPhone SDK 3.1.3 with Xcode 3.2.1
    iPhone SDK 3.1.3 with Xcode 3.2.1 Readme
    *Other Downloads*
    iPhone SDK Agreement
    iPhone Configuration Utility

  • Iphone sdk for iphone os 2.1 final dmg does not install

    Hi all,
    opening the dmg file
    iphone sdk for iphone os 2.1 final dmg
    fails with the error -4960.
    A small message box pops up defining this error.
    Is it because I have a PowerPC still so that developing apps for the iPhone / iPod Touch is not possible, or is it due to a download problem? (I resumed the download a couple of times in Safari)
    Thank you in advance for your help,
    Thomas

    The iPhone SDK requires an Itel Mac. [See here|http://developer.apple.com/iphone/program/download.html] in gray text below the +Download now+ on the left of the page.

  • 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 - What is the equivalent of a combo box

    I have a screen where there are quite a few items which are of the multiple-choice type. In other platforms i use a combo box (pick lists) to do this.
    On the iPhone SDK the only thing that comes close is the UIPicketView which is ugly IMHO. it takes too much real estate and too heavy.
    Is this is the only control available now?
    Also does the UIPicker come with an associated control which will launch the picker? What i mean is on other platforms and on the web there is a text field with a button with a down arrow next to it. Clicking either on the text field or the down arrow drops the list down. Is there a similar control on the iPhone which when clicked launches the picker OR do i have to create a button or a custom view which will launch the picker?
    Thanks for reading this and for your feedback.
    -TRS

    I do not believe there is an equivalent of -D in the DB JVM, a possible solution is:
    Load a properties file into the DB using Loadjava, then open this file from your Java code using Properties.load(), then iterate the properties calling System.setProperty().
    Chris

  • 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.

  • Problem in set selectedTextcolor in uitableview cell in iPhone SDK 3.1.2

    Hello,
    I set selected text color in uitableview cell using cell.selectedTextColor = [UIColor whiteColor]; for iPhone SDK 2.2.1.
    Now i use iPhone SDK 3.1.2, So for that i make change as per documentation for that i use textLabel properties. But selectedTextColor is not exit.
    So Now for SDK 3.1.2 how to set selectedTextColor?..
    Thank you.

    The textLabel property is an instance of UILabel, so it has its own textColor, textAlignment, and font properties. E.g.:
    cell.textLabel.text = @"foo";
    cell.textLabel.textColor = [UIColor whiteColor];
    cell.textLabel.textAlignment = UITextAlignmentLeft;
    Hope that helps!
    - Ray

  • IPhone SDK : Communication between iPhone client and a remote server

    Hi,
    This is w.r.t iPhone Cocoa Touch native application.
    i need to populate my application 's data from a remote application server ( which in turn connects to the database) . I require some tips in the communication between client sitting on the iPhone and the remote application server. I am planning to proceed in XML transaction way.
    I referred the SeismicXML sample application provided by Apple. In this sample,client reads the physically existing xml file from @"http://earthquake.usgs.gov/eqcenter/catalogs/eqs7day-M2.5.xml"; and the client parses the xml file and display the content on the table view.
    i have following 2 queries ,
    1. I do not want to read from a physically present file,i want the data to be transferred on the go.
    Means, request should be sent from the client to a application server and the server process returns the data in form of xml file ( but its not creating any physical xml file) .
    Basically i am looking for request - response concept.
    2. Can we call a java process(which returns xml data) running on a remote server from the cocoa touch client.? If not java process,what would be other best way...
    i am going through the Apple provided frameworks. Do any of the iPhone SDK frameworks support this request? If some one has any idea on the above mentioned queries, pls help me.
    any pointers will also be helpful.
    It might be too early to talk about these,but i have to take some business decision related on this.
    thanks in advance.

    You already know how to send a string via HTTP Post? And you know how to make XML into a string? Put the two together.

  • IPhone SDK custom installation, what do I need?

    FYI, I will be developing iPhone Apps only and don't want to install unnecessary things.
    Options are:
    Developer Tools Essentials (Required.)
    iPhone SDK (Obviously need.)
    System Tools (Do I need? It's checked by default.)
    UNIX Development Support (Do I need? It's checked by default.)
    Mac OS X 10.3.9 Support (Know I don't need, not developing anything for OS X, particularly not an old version.)
    WebObjects (Do I need? It's NOT checked by default.)
    Thanks.

    Hi--
    Welcome to the Apple Discussions.
    System Tools (Do I need? It's checked by default.)
    I would suggest "yes." That's the installer for the performance tools. Shark, especially, can be invaluable for profiling your code.
    UNIX Development Support (Do I need? It's checked by default.)
    I'd suggest "yes." It's command line tools you might want at some point (to help in automating builds, etc.). Some aspects of scripting with OS X can also be made easier if you have the UNIX dev support installed.
    WebObjects (Do I need? It's NOT checked by default.)
    Definitely not, that's a web application framework you'd use if you were building a web site.
    charlie

Maybe you are looking for

  • Printing problem for elements 10 in windows 8

    I just bought a new computer with windows 8..My old computer was a windows XP. I reinstalled the disc .Everything works well until I wanted to PRINT..Completely different, can not change paper type, paper size, no print management etc.Is there someti

  • How can i add text transformation to a module?

    I am currently working in a latest news announcement module but the release date tag is all in small caps. I would like for it to be in initial caps lock transformation. Here is the module html <div class="announcement-list" style="text-transform: up

  • Logic is quitting on me during playback

    Logic is suddenly quitting during playback. I think it's something with native instruments, can anyone help me to get back to working on my tracks? The error code says thread 9 crashed? Please, please help. This is seriously ruining me.

  • To run Apple TV on more that one TV do I need to buy another Apple TV device?

    ?

  • Only plug-in version autoupdating

    The Flash Player automatic updater always updates only the plug-in version for me. My default browser is Opera 12.16 32-bit which uses the plug-in. I'd like to know if this behavior is by design or if I'm affected by some sort of a bug/anomaly. I hav