iphone

iphone - UILabel - How to align to top left

I'm having a 4 line label in my iPhone app. When my label text is small, the label is centered vertically. But I want to start at topleft corner of the label. I used following code, still not working. campaignDescription.baselineAdjustment = UIBaselineAdjustmentNone; How to achieve this? ...

Can We Change the UITableViewCell TextColor when we are selecting the Cell?

I am having a default TableViewCell I am not Customizing it. I want to change the TextColor when I am selecting The TableViewCell Can We Do it. ...

Iphone--(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

Hi, I By using this command -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation I can rotate my view automatically ,Is there any way to rotate and ellabarate and fit with screen. Thanks in advance, (Deepan) ...

Integrate View and CCLayer/CCScene in iPhone

Hi all, I am developing a game in cocos2d. Now I had done a coding in my previous iPhone application which was doing functionalities like recording and playing the recorded sound. I want to implement that same thing in my cocos2d application also. So i want to integrate them in such a way that I can use that SoundViewController.h and...

Using the British pound sign in an XML feed to be read by an iPhone

I have created a web-based UTF-8 XML feed for use in an iPhone application. When viewing in a web browser, if the feed contains a British Pound sign, I get a nasty XML error: XML Parsing Error: undefined entity However the actual file seems to be readable. 1. Will an iPhone NSParser be able to read the file or will it fail due to this...

ASIHTTPRequest UIWebView load documents

What is the best way to view documents (pdf,doc,xls) using AsiHttpRequest and UIWebView??? I tried the following, but the UIWebView is displaying the html: NSString * baseURL = @"http://xxxxxx/open-api/v1/"; NSString * itemRef = @"item/133/attachment/test.pdf"; NSString *urlString = [NSString stringWithFormat:@"%@%@", baseURL, itemRef]...

Problem when #import C++ Header File in iPhone/iPad Project

Hello ! I have a C++ class I would like to use in an iPhone/iPad project. I created this file in different ways (like with "New File" => C++) and the error is always the same. When I compile the project without having any #import (of the .h C++ class), it's ok. But as soon as I #import the header file in one of my header objective-c f...

can we make iOS4 style folders in our app

Hi frends, can we make iOS4 style folders in our iphone app? actually i want that there is a icon on my screen and when clicked on that icon the 4 other icons inside that icon will show like iOS4 style.i.e. the main icon treats like a folder in iOS4. is it possible??? Thanx ...

Iphone App crashes with (Cocoa error 133020.) on updating an entity attribute for 2-3 times

Hi, In my iphone app, Using core data as DB, When i try to change the value of an attribute for 2-3 times in my different module of the application i.e. in different files, it crashes with error No (Cocoa error 133020.) and also listing the cached ROw , with all the new & old version of the particular entry , could any one help me by p...

No Internet Connection

Hey All I am a little confused on how to go about and do this.... On each page of my app i connect to PHP file to drag in data from my server. I have about 10 pages. Now if there is no connection to the internet then of course now data can be received. Often the app crashes and we are putting this down to not having the data due to a ...

How to get "deselect" notification on UILabel

Hello! I have UILabel and I need it to be able support copy&paste (actually only copy as it is read only). I subclassed UILabel to support copy and it works fine. I also added text highlight so user knows what exactly is he copying when he clicks on label. My problem is that I don't know how to cancel that highlight when user clicks s...

Single developer releasing multiple apps

When a single developer releases multiple apps, do they register the apps under different company names? What's the most iPhone apps released by a single developer that you know of? ...

iPhone, is it possible to remove the back button and make a view slide up ?

I have a view which I'm reusing (its a date range selection screen) it elsewhere in my app, its the only view and there isn't any other views to navigate too. So theres no back button. I'm trying to reuse the screen to select a date range in another part of my app. I call it from a done button on the previous view. However, I'd rather i...

iPhone: Since when did SKPaymentQueue addPayment trigger the applicationWillResignActive callback?

Did I miss this information in the documentation? Am I going mad?? I'm debugging some payment issues and have just discovered that the following code is triggering our applicationWillResignActive callback in the app delegate. SKPayment *payment = [SKPayment paymentWithProductIdentifier:productid]; [[SKPaymentQueue defaultQueue] addPaym...

How can I get the monday of a week in a special date in Objective-C?

e.g. 01.10.2010 is friday => 27.09.2010 is monday. I have no idea how to manage this one. btw: how can I calculate with dates? ...

Apple Push Notification Service with PHP Script

Hi guys. I'm trying so send push notifications ton my iPhone (APNS). I read this post and try to implement it. So all my certificates are good (normaly). Now I have this php script : $device = '4f30e047 c8c05db9 3fa87e7d ca5325f7 738cb2c0 0b4a02d4 d4329a42 a7128173'; // My iphone deviceToken $payload['aps'] = array('alert' => 'This is...

getting lat long from mapView iphone ?

hello, all , iam developing an ipad app that uses mapview to display google maps, my problem was how to get lat long of a perticular region, some how i manged to get by putting an overlay on the map view and getting point of that view , then converted to lat long. now my problem is i want to show an movable pointpin on the view so that ...

convert .zip file into NSData

Hey, Is it correct to initialize an NSData with a zip file? I want to convert a zip file into NSData and construct another file with the data (in simple language 'copy it'). I have the code as: NSURL *theFileUrl = [NSURL URLWithString: @"file://localhost/Users/xxx/Desktop/testZippedFile.zip"]; NSData *data = [NSData dataWithContentsOfU...

How to add tabbarcontroller inside viewcontroller in iphone

hi i am currently working in iphone navigation based application. so my app have 30 screen,after navigating five screen i need a TabbbarController . I add tabbar Controller OverMy viewController ( [self.View addSubView:tab.View];) my application work fine and navigation work perfect but my problem is that after navigating fro...

How to show multiple Alerts one after another in iphone app

Hi let me explain briefly. i am developing an iphone application where i have to show multiple UIAlerts one after the another, but if i simply use multiple [alert show]; they all show up stacking up to each other. one solution is to show one alert [alert1 show]; then in - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex...