iphone

Why is it that sometimes my web application does not work on the iPhone?

I have a web application that uses login and sessions (cookies). Why is it that sometimes, when the iPhone is going slow with the 3G network (super super slow), the iphone doesn't see the cookies? Cookies don't work when the iPhone network is slow!!! ...

Simplest way on iPhone to unzip downloaded file?

Goal: download a zipped file, unzip it, and save it in the iPhone app's Documents directory. The following code makes use of the initWithGzippedData method that was added to NSData in the Molecule app found here: http://www.sunsetlakesoftware.com/molecules As adapted to my app: NSString *sFolder = [NSHomeDirectory() stringByAppendingP...

Searchbar attached to top of keyboard in Objective-C

Does anyone know how, in Objective-C on the iPhone, to bring up a keyboard with a search bar connected to the top of the keyboard? ...

How to get colliding effect or bouncy when ball hits the track.

** STILL NOT WORKING ** I am using below formula to move the ball circular, where accelX and accelY are the values from accelerometer, it is working fine. But the problem in this code is mRadius (I fixed its value to 50), i need to change mRadius according to accelerometer values and also i need bouncing effect...

iPhone + alternative to drop downs

Hello, I am developing native iPhone app. I have one requirement that, there are 5 drop downs in the screen, where user will select each value and based on that there will be a graph generated on screen. Also the drop downs are cascading, meaning that depending on value selected in upper drop down, the values in lower drop downs will...

Best practice - Accessing preferences globally

User preferences for my app is store in NSUserDefaults. This includes a "theme" preference, which needs to be accessed frequently by multiple classes. I would prefer not to call "[[NSUserDefaults standardUserDefaults] objectForKey:..." repeatedly as it makes for inconcise code and I assume will incur overhead. What is the preferred and m...

anyone have Idea about CASlotProxy

Hi, Anyone have any idea about CASlotProxy Class in COCA(may be Iphone OS framework).I found it in UIView contents. Thanks, ...

question related to Autorotation

hi when i delete the application and then on first page if i rotate from portrait landscape then it rotates but on second time it not why? ...

Terminating app due to uncaught exception 'NSInvalidArgumentException' in iPhnoe

i have view controller including image ,table and tab ,i want to fill the table thats why i written separate class for table as uitableviewcontroller and give mapping to that class in IB, but i have following exception Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[AssetTableView superview]: unreco...

difference among NSthread and NStimer and NSNotifcation?

What is the difference among following codes 1) [NSThread detachNewThreadSelector:@selector(myFunction) toTarget:self withObject:thename]; 2) [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(myFunction:) userI...

On disabling UIButton, it hides

I have added a custom UIButton. I am trying to disable the button,but the button hides. Please help ...

Mimic behaviour of UITableView section headers staying visible during scroll

When you have a sectioned, plain-style tableview on the iPhone, such as in the Contacts app, the section headers remain visible when you scroll past them until they are pushed offscreen by the next section header. Does anyone know how to achieve something like this in an ordinary scrollview? I already have one scrollview nested in anoth...

Where to find changes from iphone OS 3.0 to 3.1.3

I've developed an app using the 3.1.3 SDK and I want to set the deployment target to OS 3.0. The app uses iPod functionality which I can't test on the Simulator so my question is: Is there somewhere I can find a list of the changes from 3.0 to 3.1.3 so I can check if anything might be broken on an OS 3.0 device? I've looked on Apple's...

UIImageView rotation (NOT the image, but the view)

Hi. How do I rotate the ImageView ... i'm trying to use landscape mode, and have a problem with accelerometer moving the image ... Because when I work in portrait mode the x of accelerometer is the same as the x of the image ... But when I work landscape, the x of accelerometer is the y of the image, because the ImageView autorotates wi...

UIView animation only animating some of the things I ask it to

I have a series of (say) boxes on the screen in a row, all subviews of my main view. Each is a UIView. I want to shift them all left and have a new view also enter the screen from the right in lockstep. Here's what I'm doing: // First add a dummy view offscreen UIView * stagingView = /* make this view, which sets up its width/height */ ...

tar extraction in iphone SDK?

Hi, how can i extract tar file in iphone Sdk?i tried both miniZip and libZ.dylib, it extracts only .gZ file. i decompressed my.tar.gZ file into my.tar.but how can i extract again tar file?any one can help? ...

How we can interact with the iphone scheduler through code ?

hi all, is there any way via which we can interact to iphone scheduler and insert and delete data through any iphone application. And produce alerts on that particular time.A user will insert data in the scheduler through the iphone app and user will get notify on that particular time . Thanks Balraj ...

encode-decode image data with base64

Hi Guys I am try to make iPhone application to encode-decode an images (NSData format). NSData imageData = UIImagePNGRepresentation(image);` How can I do, please give some source code. Thank you! ...

how to change UITabbar selected color?

according to this post for now, Is apple will also reject this code? and how to implement what apple will approve? @interface UITabBar (ColorExtensions) - (void)recolorItemsWithColor:(UIColor *)color shadowColor:(UIColor *)shadowColor shadowOffset:(CGSize)shadowOffset shadowBlur:(CGFloat)shadowBlur; @end @interface UITabBarItem (Priv...

state maintainance

I have written code for autorotation in shouldAutorotateToInterfaceOrientation method and in that method i had written YES; So,when i delete application and then when application launches at that time ,if i move my first view from portrait to landscape mode it works but it not works for second time why? ...