iphone

iTunes Connect and Bundle ID from another developer account

Hi, I used the developer account of my company to create a BundleID, configure APNS and set development and distribution provisioning profiles. I created an application and compiled it with the provisioning of my company. Everything works fine. So now my customer wants to submit the app with its own itunes connect account. I may be wr...

UIView Touch event at the bottom of the screen not fired

Hello, I am encountering a strange problem. I created a UIView that takes place at the bottom of the screen (0,431,320,49) and then I want to deal with touch events. When I touch the upper side of the UIView, it works. But when I touch the bottom side (I mean, more than 20px in relative position), the touchBegan event is not fired. It...

Writing a mobile phone radio station app - is Javascript/HTML/CSS viable, or do we need to go native?

I want to write an app that will stream MP3s from a server to any of the three major smartphone operating systems in the US (iPhone, Blackberry, and Android). Here is the tradeoff I'm concerned with: if I write the app natively, it will make for the best user experience and give me the capability to add many more features if I want, but...

Connection delegate methods not called with background thread, Why ? (iPhone SDK)

Connection delegate methods not called with background thread, Why ? In program i have created background thread and that thread set connection delegates, by setting ObjNSURLConnection.delegate = AnotherClass, and that AnotherClass contains NSURLConnection delegate methods. But when i debug a code i have found that NSURLConnection del...

UIWebView init crash on ipad

Hello everyone, I used following code to initialize instance of UIWebView: -(void)viewDidLoad { [super viewDidLoad]; UIWebView *webView; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 768, 964)]; //crash } else { webView = [[UIWebVie...

TouchJSON with basic HTTP authentication

Hello there, I was wondering if anyone has the TouchJSON framework working in conjunction with basic apache HTTP authentication. Essentially the directory of the RESTful webservice that I am calling is secured with basic http authentication. My calls are obviously all returning null now. Has anyone managed to get this working? I could e...

adding textfield,label above the uitableview..

Hello all, How to design a tableview similar contact application in iphone......... ...

encoding mobile-device versioning for REST Api server

We have restful api over HTTP. Amongst other clients we have also mobile-device clients (e.g. iphone). The issue is that there are several iphone apps in different versions out there (1.0, 2.0). Because they are distributed we don't have control which app-version is calling us. To identify the app-version on server-side I see following...

Custom UITableViewCell erroring

Hello stackoverflow, I am trying to build a custom table view using a cell that I built in IB. I am getting a strange error: <BroadcastViewController 0x4b4f5f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key postText. Everything is wired up correctly in IB to the cell controller. Not really s...

How does the iOS use argc and argv?

When you create a default iphone OS project in xCode, you have a main.m in "Other Sources" on the side panel in xCode. How does the int main() in there use argc and argv and why does it need it? Thanks :) ...

How to programmatically simulate the Home and Power button of iPhone?

Hey there, I want to simulate the press of iPhone home button and power/standby button. Could anyone tell me how to do this? ...

Which view touch event will get called + iPhone

Hi all, First Scenario : Suppose we have a first view as FirstView. in this view(FirstView) we add another view(SecondView) having exactly same frame as FirstView as [FirstView addSubView:SecondView]; Now touch event of which view(FirstView or SecondView) will get called? Second Scenario : suppose after adding SecondView(frame exac...

Transform device orientation to world frame in objective c

Hi I'd like to transform the yaw, pitch and roll of the iPhone from the body frame to the world frame, i.e. azimuth, pitch and roll. On Android this is easily done with the SensorManager.remapCoordinateSystem(), SensorManager.getOrientation methods as detailed here: http://blog.mysticlakesoftware.com/2009/07/sensor-accelerometer-magnet...

Sorting a to-many relationship when calling NSFetchRequest

I have two entities. Client and Project. A Client has many Projects, but a Project can only be assigned to one Client. This has been designed with the datamodel. Client entity has attribute clientName and relationship to-many projects Project entity has attribute projectName and relationship to-one client I want to retrieve all Cli...

Change PDF metadata on iPhone using Quartz 2d

Hi all! How can I change the metadata of a PDF using Quartz 2d on iPhone? That's the way I get the CGPDFDictionaryRef: CFDataRef pdfDataRef = (CFDataRef)pdfData; CGDataProviderRef providerPDF = CGDataProviderCreateWithCFData(pdfDataRef); CGPDFDocumentRef pdfDocumentRef = CGPDFDocumentCreateWithProvider(providerPDF); CGPDFPageRef page...

How should I architect my iPhone app to talk to my website?

Hey all, I'm planning my first iPhone app and I'd like to get some inputs as to how to build it, right from the start. The iPhone app is being built to be paired with a public facing web application that is already built in PHP. I'd like the web platform to be central (data is housed in a mySQL database), and have the iPhone clients ...

iPhone, need the dark blue color as a UIColor (used on tables details text) #336699

I'm trying to assign blue text like this, exactly like this I'm using my own text field. In hex the color is #336699 I need to access my text color to this, I would have liked to use a UIColor but there doesn't seem to be one. ...

slide inside a button - touchdraginside

Hi all! I got an touchdraginside-action which is connected in IB with a button. -(IBAction)slide { } How can i check the start touch point in my button and how long the finger slides in this button? Can anybody help me, please? With this code a can check the touch in my view... But i dont know how this works with a button? -(void)...

Flurry appcircle :how does it work under the hood?

Appcircle is a cross selling solution: it lets a publisher to seel an application within its own Iphone application. When such a purchase is done the publisher earns a commission. To do so appcircle should be able to associate the click on the buy button to a successful selling transaction on the app-market. I wonder how this is done and...

Saving hi-res images to photo album

I'm developing a simple image processing app and I've encountered an issue on my test unit (iPhone 3G) that generally any image over 1024x1024 pixels will cause the app to crash when saving. The process my app follows: User selects an image via UIImagePicker A working copy of the selected image is created and resized to the view bou...