iphone

Clean blur mask over an image by finger

Hi there, I want to create an ImageView with a blur mask over it. And user can use his finger to clean the mask and view origin pic under it. Is there any library for that purpose? Thanks. ...

What is the "correct" way of making a control have keyboard focus on initial UIView display.

If I want a text field in my view to be focused for text entry immediately after the view appears on screen, is it correct to simply instruct the UITextField to "becomeFirstResponder" in a UIViewController's viewDidAppear. Eg: -(void) viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; [myTextField becomeFirstRespond...

NSDateFormatter - 1 day incorrect?

Hi. I am importing a CSV file with a date format of month/day/year (e.g. 21/01/2007). I am looping through the CSV some are working but some are coming out with the date 1 day previous with a time of 23:00? One of the dates that are not working would look like this: NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; ...

How to get rid of 'more...' button in tab bar app?

hello. ive searched for 2 weeks solid on this and cant find an answer. ive posted on a couple of other sdk forums and nobody seems to have a clue... i am building a tab bar app and i want to have 6 pages with 6 icons on the tab bar at the bottom. by default if you add more than 4 icons to the tab bar, when you build the app you get the ...

NSURLConnection: gzip encoded SOAP response gets corrupted

I'm having trouble writing a IPhone/IOS Obj-C SOAP client that talks to an application with a SOAP WS interface. The application uses a NuSOAP php webserver and encodes any payload above a certain size using gzip/deflate, whichever is enabled by the client. I understand that NSURLConnection transparently decompresses any gzip encoded re...

Downloading photos from a (USB-connected) iPhone programatically

I'm wondering if it's possible to access the Camera Roll on the iPhone programatically. Some background: I want to basically run a cron job every night that will download all the (preferably new since last time) photos from my iPhone to a folder on my computer. I'm using a Mac, and I'm not terrifically concerned with interoperability — I...

In photoscroller app (iPhone WWDC-104 Photos App) uiscrollview images shift to right when called using presentModalviewController

Hi All, I have seen the WWDC-104 video showing UIScrollView for photos. I have downloaded the Sample code too. In my app the Structure is as follows, (Root Class)Class A ---> Class B -----------> PhotoViewController(Containing ScrollView) I am calling the PhotoViewController class by using presentModalViewController method in Class ...

Using a view controller both as modal view controller and as a tab bar view controller

I have a view controller alike contacts in iPhone. The code is something like this, tabBarController = [[UITabBarController alloc] init]; friendsVC = [[RemittanceFriendsVC alloc] initWithNibName:@"RemittanceFriendsView" bundle:nil]; friendsVC.friendsArray = [[RemittanceModel getInstance] friends]; UINavigationController *friendsNVC = [...

iphone 3G multitasking ?

hello, my app works fine in background for iphone 3gs and iphone 4 , if i cracked my iphone 3g in order to support multitasking , whether my app works fine in background mode or not. Thanks Kumar ...

Search Display Controller does not show searchBar

Hi there!! I created a simple TableViewController using the template offered by xCode. Then I open the xib file of the TableViewController with Interface Builder and I drag/add a uisearchdisplaycontroller on the top part of the tableView. xCode automatically creates and link all the outlets. I save the xib file and I run the app but the...

PAGECURL ANIMATION SUBTYPE

I know this has been asked a thousand times and people will say that the @pagecurl will get rejected. I tried reasoning with the client but they insist they want to push the app with that function in and it will have a chance of not being rejected. The problem is that if I try animation.subtype , the animation will not listen to it. ...

CABasicAnimation stops when relaunching the app

I am running into a problem where a restart of my iPhone app causes animations to stop. More specifically, I have the following animation set and running: CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"path"]; animation.duration = 1.0; animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTim...

Call parent function in xcode iphone development

We have 2 files 'MainViewController' and 'View01' The first file addSubView the second one. In the first file we have a function named displayView. I want to be able to call this function from the View01 file is the following code correct part of View01 file #import "MainViewController.h" - (IBAction) changeView:id(sender){ Ma...

Problems with closing the iphone app

On other apps I noticed that when you close the app and load it back up you always see the first loading screen. In my app it's only on that first time. Can you please let me know how to sort this out. Thanks ...

UIProgressView defaulting to top left corner of main view

Hi there My UIProgressView is going to the top right hand corner of the main view - even though I set it as a subview of a UIView (which in turn is a subview of the main view). And even if I setFrame:. Any ideas? if(downloadBar == nil){ downloadBar = [[UIProgressView alloc] initWithFrame:CGRectMake(10, 10, 200, 10)]; } [downloadBar ...

Writing out JSON data to a simple textfile

Hi! As always I have searched the forums and googled my self slightly insane without being able to figure out what I am doing wrong. Therefore I turn to the great minds frequenting this site in hopes to find an answer. I'm building an application that will communicate with a database and in doing so I'm trying to learn how to use JSON t...

iPhone Bluetooth Network Tutorials that don't use PeerPicker?

I'm trying to set up a Bluetooth Server/Client network on the iPhone, and it's throwing up some really weird problems. Stuff like networks being advertised that can't possibly be there any more. Can anyone point me to a good tutorial that tells you how to set up a Client/Server network using Bluetooth? Please, nothing pointing to PeerPic...

locationServicesEnabled for iOS 3 and iOS 4

locationServicesEnabled changed from a property to a method. This is deprecated: CLLocationManager *manager = [[CLLocationManager alloc] init]; if (manager.locationServicesEnabled == NO) { // ... } Now I should use: if (![CLLocationManager locationServicesEnabled]) { // ... } I want to support iOS 3 and iOS 4 devices. How...

How to setup HTML for mobile Devices with an header-image, that takes whole width of browser?

Hi, my concern is that I have to build a website for mobile devices. In the concept is an image set as header. The problem is now: Different smartphones have different display resolutions. There are e.g. 840x560, 480x320 or 800x480. What do I have to write as meta-tags, css, etc. to fit the image in "every" modern smartphone to the d...

Tabbar for views without tabbar items iPhone application

Hi, I am trying to use the tab bar controller in order to have a home view load with the tabbar items at the bottom but does not create a tab bar item for the home view. I managed to create views, display the tab bar on these views and create a respective tabbar item but I do not know how to NOT create the tabbar item. thanks - hope thi...