[iPhone SDK] Faster scrolling in UIScrollView?

Hi,
I've got paging enabled on my UIScrollView and everything works fine. However, page swiping is not very 'snappy'. I essentially want to be able to flick the page quickly like the weather app even if the page was flicked slowly. On landscape, if you swipe slowly, it decelerates and stops by the time the page has reached 75 % of the screen. After that, if you swipe quickly, it'll snap to it's page width limit.
How can I achieve faster page snaps? Thanks!

anyone please?

Similar Messages

  • IPhone fast scroll problem !!!

    Hi everyone
    I'm an iPhone 4 owner who is very happy with the phone's performance
    However, a few days ago this problem started occuring
    Whenever I scroll whether on the phone's menu or on a website or in my contacts or my songs
    There suddenly comes a very fast scroll that skips through several pages at once
    This is getting really annoying
    And I feel as if my phone is losing it's touch sensitivity
    Apparently very few users experience this problem and some suggested restoring te phone and setting it up as a new phone to solve this issue
    However it's a bit of a pain as I have some apps I paid for and I have over 17 gb of data
    So I would be very thankful if someone could offer me a solution other than setting up as a new
    Phone
    I tried restoring frOm backup but experienced the same problem again
    Any help would be GREATLY APPRECIATED !!!
    regards
    iPhone 4
    iOS 4.2

    There is nothing in the settings menu which would cause fast scrolling, so the best advice would be to make an appointment at your Apple store Genius Bar and let them see what's happening. If your phone if found to be defective, they will replace it.

  • 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 - Keyboard overlapps the UITextField

    Hi!
    I've got a problem with the iPhone SDK. I'm creating an UITableView with some UITextFields
    The problem comes when editing the 3d cell with a text area. The keyboard appears over the field in edition mode, so you're not able to see the text you're typing.
    It's quite weird because I have the table with scroll enabled but it doesn't scrolls below the 3d cell (even if I put 10 extra cells)
    any clue on that?

    No, I cannot scroll anything with two fingers (XCode emulator)

  • Delay/sleep/wait in an iPhone SDK app?

    I'm trying to get some numbers to count up on the screen of my iPhone, but I can't see any way of delaying the app.
    I have a for loop that changes the figures on-screen from one value to another by individual increments, but when I run it, you only see the final figure because it runs so fast.
    Is there a way of adding a delay in the for loop so that the numbers visibly change? I'd like to see 0 change to 1 change to 2 change to 3 etc. instead of, erm, just 3.
    I thought of putting a second for loop in that counted up to, say, a million, but that's too fudgey for me. I'm sure there's a delay function in the iPhone SDK...

    You can also do eg. [NSThread sleepForTimeInterval:5.0] to sleep for 5 seconds..

  • 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 Calendar View Control/Tool??

    I guess I was expecting something in the iPhone SDK toolkit to display a full calendar (as in the iPhone calendar application) rather than just a date picker.
    Does anyone know of any Cocoa code that displays calendars like in the iPhone Calendar application that could be used with the iPhone SDK?
    Thanks.

    I did not say it was "difficult", it was just not as easy as it might seem. Our programmer cranked out the core class in a few days, but testing revealed the periodic quirks as I mentioned. So, I would encourage you to continue.
    I am reluctant to tell you my app as I am sick of the trash talk and complaining about the pricing and do not want to read any more on this discussion group. The calendar looks almost exactly like Apple's but without the animation on month changes or fast month changing (and there are no appointment functionality).
    With no disrespect to you or Shanghai, the buildings are works of art, the people are friendly, but the air quality is terrible and my son hates to take a breath there.

  • ITunes 9 and iPhone SDK 3.0

    Hi there,
    I downloaded and installed iTunes 9 yesterday by hand since the software update tool didn't have it yet. However during install, he asked me to close my Xcode (v.3.2 with iPhone 3.0 sdk that came with the Leopard Upgrade Disc) and when I fired it up again, the iPhone projects Template section was gone, making me download the whole 2.2 gb for Xcode 3.2 with iPhone sdk 3.1.
    I understand, that the iTunes 9 installation probably removed all traces of the 3.0 Framework but would waiting for proper updates through the Software Update tool spare me from such adventures during future firmware releases?
    Thanks in advance!

    Ok, here is the EXACT thing that I have on my iTunes that is working on my iPhone. (I haven't checked on the Shuffle yet) First screen--iPhone itself--nothing checked except Automatically sync when this iPhone is connected. Now Podcasts Tab on iPhone screen (right side of iTunes--center really--at least not the left side) Checked Sync Podcasts at Top. Also Checked Automatically include ALL episodes of SELECTED podcasts. Now here is where it seems weird. I have NONE of the podcasts themselves checked. Scroll Down further and there is a check box for Includes Episodes from Playlists. I have both of my Smart Playlists checked and they are both working correctly.
    One more thing, I have in my Smart Playlist a rule saying Play Count is 0. That way after I have completely listened to the entire podcast it will be deleted from that playlist. If I am halfway through the podcast--that is saved and it starts playing at that point.

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

  • Adobe Reader crashes when fast scrolling and using IAccessible interface

    Acrobat Reader 8, 9 crashes on Vista, XP, 2003 server by following steps:
    1. Open two huge documents (>1000 pages).
    2. Get IAccessible object by AccessibleObjectFromWindow function from external application.
    3. Fast scroll in one document and quickly click on second doc's vertical slider bar several times.
    Here I get APPCRASH ("Acrobat Reader has stopped working").
    If external program doesn't get IAccessible, Acrobat Reader works normally.
    If I close external program after getting IAccessible Acrobat crashes after scrolling too.
    Reading mode option is set to "Read the currently visible pages only" in "Accessibility Reader Options".
    any ideas?

    Known bug. Use the Advanced Search instead.

  • IPhone SDK CodeSign Error: Redux (latest OS X update is broken)

    This bug - http://discussions.apple.com/thread.jspa?threadID=1455699&start=0&tstart=0 - is back. My AdHoc project, which worked perfectly last week, has just stopped building, with this:
    "object file format invalid or unsuitable"
    As soon as I upgraded from 10.5.7 to 10.5.8, this bug appeared.
    However, this bug was officially fixed in 10.5.7 - so, I'm guessing here, Apple has accidentally re-created it.
    Unfortunately, I cannot add to the original post, because Apple has frozen the topic.
    So, here's a new topic to ask if anyone else is having this problem, and what they did about it - is it exactly the same as the old bug? or is it different in some way?
    I'm going to try some of the workarounds for the old bug - but hacking command line scripts isn't fun, and I'm worried I might break something even worse .

    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

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

  • Running iPhone SDK & Leopard on G4 1.42 emac?

    Looking for a cheap entry point to get into developing apps for iphone. I can get the 1.42ghz G4 emac for $200 or G5 PPC 2.0ghz for $775.
    I've read that the G4 will run leopard, but havent found anyone running leopard and iphone sdx on the G4. I'd like to try things out first on the G4, but is it going to be so unbearably slow that I'm going to regret taking the cheap way out? Thanks.

    montyplease wrote:
    Looking for a cheap entry point to get into developing apps for iphone. I can get the 1.42ghz G4 emac for $200 or G5 PPC 2.0ghz for $775.
    I've read that the G4 will run leopard, but havent found anyone running leopard and iphone sdx on the G4. I'd like to try things out first on the G4, but is it going to be so unbearably slow that I'm going to regret taking the cheap way out? Thanks.
    Further research has led me believe now that iPhone SDK will only run on Intel based machines. If that is indeed the case, neither machine will work for me.
    <Edited by Moderator>

Maybe you are looking for

  • Macintosh HD is damaged and can't be repaired

    Hi, The other day i decided to purchase and download Mac OS X Lion off from the AppStore for my iMac 21"inch, however after i sucsessfully downloaded the OS it began to Installing, then when it passes 5 minutes of installing the window displays a wor

  • New eCATT page on SDN / eCATT forum

    Hi all, we have recently created a new SDN page on eCATT: [eCATT: The Extended Computer Aided Test Tool.|eCATT: The Extended Computer Aided Test Tool] Comments and proposals for improvement are welcome. Additionally eCATT related questions should in

  • How to upload single heavy video file by flash AS2.0

    How can I upload single heavy video file by AS2.0 with php backend? I have video file of 200 GB but flash officially supports 100MB. http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/net/FileReference.html Then how this can be achieved?

  • ITunes Store in Nigeria?

    Is there an iTunes Store in Nigeria? My friend in Nigeria is trying to post a podcast in the iTunes Store but when iTunes asks for his five digit zip code and his country, Nigeria isn't in the list of countries. If there is no iTunes Store in Nigeria

  • The virtual keyboard of PC

    I WANT TO WRITE A TEXT MESSAGE ON A VIRTUAL KEYBOARD OF COMPUTER USING LABVIEW BUT I DONT HAVE ANY IDEA ABOUT IT. PLEASE SUGGEST ME IF IT IS POSSIBLE USING LABVIEW