iphone

iPhoneSDK Setting CALayer.transform does not work after animation is finished

I have a CALayer object. In viewDidLoad: I set a transform to it using layer.transform = CATransform3DRotate(CATransform3DIdentity, M_PI/8.0, 0, 0, 1); This works. After loading, I apply a CAKeyframeAnimation to animate the rotation of that layer. It also works and animation finishes correctly. To prevent the layer from removing the ani...

how to print from an iphone application ??

hi, i want to develop application using which user can print documents (text or doc or images or pdf etc.). User just give print command from an application, application lists available printers (via bluetooth or wifi), user select particular printer and give print command. Any ideas ??? I dont think GameKit or Banjour will be useful i...

Retrieving the Apple Id (or some kind of account id) in Objective C

Hello I am writing a paid app for the store which gives you a 1 year subscription to some content. This means I need to store on my web service db, when the user first launches the application some kind of unique user id (Apple ID?), along with the date. I can then do validation to check if the subscription is still valid. I can see ...

Simple http post example in xcode?

Hi, I have a php webpage that requires a login (userid & password). I have the user enter the information into the app just fine.. but I need an example on how to do a POST command to a website. The apple example on the support site is rather complicated showing a picture upload.. mine should be simpler.. I just want to post 2 lines of ...

TabBar of TabBarController loosing background color

Hi there, I have a question. I'm developing an application which loads a first UIViewController, used to show some logos while fetching some data on the net. When it has finished, it discard itself as subview and loads a UITabBarController. In a first time, this process started when the user tapped the screen, and I had no problems. Now...

Overlaying a view overtop of a UITableView

Hello stackoverflow, So I am trying to create a search that returns a bunch of results to a UITableView. When the user selects one of the cells, I want to overlay a detail view of that result in a nice, concise window. This view needs to have some text, buttons and a photo. I was looking into hacking an alertview but read that that i...

push notifications settings in iphone

In iphone settings there is an option called "Notifications" and inside it should be list of application which use Push Notifications. How can I place my App there? Does the iphone SDK to this automatic if the appllication uses notifications or should I do this on my own? If it should be automatic then why my app isn't there? ...

[iphone] initial settings of NSUserDefaults

So I was reading this: http://stackoverflow.com/questions/2228302/storing-iphone-application-settings-in-app which seems simple enough. However, where/how would I define the initial settings? So for instance I have a Country setting: UK or USA. When the app is first installed/opened I want it to automatically know/set NSUserDefaults to...

UITableView differentiate between swiping from left-to-right & right-to-left

How to differentiate between swiping from left-to-right & right-to-left in a UITableView cell. Anyone has some ideas? ...

iPhone/iPad/iOS: tricky use of tab bar controller

Hello, Trying to implement the following behavior on an iPad. I have a map-centric application which uses a tab-bar interface. The tabs at the bottom allow the user to choose between looking at the various different types of points that are marked on the map (e.g, think of the tab-bar items "food", "lodging" and "gas", where the "food...

Is it Possible to play movies in queue using AVPlayer...?

i have to play movies one after another(queue), i try with MPMoviePlayerController by setting content url but flick is there. Is it possible with AVPlayer..? if possible any sample or tutorial Thanks in Advance... ...

scope bar search iPad

I have to specialize a search in my iPad app, and I think to use the scope bar with the search bar. But how can I get the index of a selected scope button and base my search on it? thanks ...

Dismissing UIPopoverController with -dismissPopoverAnimated: won't call delegate?

I have my UIPopoverController with self as a delegate: I receive calls when I tap outside the popover controller, but when I tap inside I want to dismiss too, so I use -dismissPopoverAnimated: but delegate is not called in this case. Is this normal? Is this a bug or I am doing something wrong? newDocPopoverController = [[UIPopoverContro...

Incompatible Objective-C types initializing 'struct NSNumber *', expected 'struct NSDecimalNumber *'

Hello, I have the below method in my project, and I get a compiler warning: Incompatible Objective-C types initializing 'struct NSNumber *', expected 'struct NSDecimalNumber * on the first line: - (IBAction)sliderValueChanged:(id)sender { // HERE IS WHERE THE WARNING OCCURS: NSDecimalNumber *tempNumber = [NSDecimalNumber number...

problem with cellForRowAtIndexPath method in UITableView iphone (indexPath.row is null)

Hi All, Table view cell management has driving me crazy from past two days. Please check the code below and I will explain you the problem in detail.. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tabl...

Best practice for multiple uiviewcontrollers

Hi, i have a application that will have multiple uiviewcontrollers, the navigation in the application is not in a hierarchy, the controllers should all be able to be invokedon a need to be displayed basis. What is the best way of modeling this kind of flow?, using UINavigationController?, or AppDelegate for switching viewcontrollers? et...

Parsing dictionary from plist into array

Hi, could anyone help with loading dictionary objects correctly into the array. Loading of plist into dictionary object works fine, and I was able to output some of it into command-line. Problem is that this way of loading bundles each Name and Price sets into same cell in the array. IE: Is it possible to load them separately? Or perh...

UITextFieldDelegate of a customcell

In my tableview, I load a custom cell from a nibFile: customCell = (cellReponseCircuit *) [tableView dequeueReusableCellWithIdentifier:@"cell"]; if(!customCell) { customCell = [[[NSBundle mainBundle] loadNibNamed:@"cellReponse" owner:self options:nil]lastObject]; } customCell.reponse...

iPhone upload image speed advice

Hi there, I have an app that allows you to take a picture, adjust the jpeg quality size (10-100%) and then send it to a server using ASIFormDataRequest (part of the ASIHTTPRequest implementation). This works fine over a network connection, but over the celluar network it appears to sit there for 5-10 minutes attempting to transmit the i...

The deleted view keeps on loading in my iPhone application

I had a view called HomeViewController.xib which I deleted. Now, for some reason that view is still being loaded when the application starts. How can I set a different view to be displayed when the application starts? ...