iphone

iPhone development: Extract SSL certificate information

I'm developing an app where I want to setup a secure channel between my app and a server. I want to extract information like CA and algorithm from the SSL certificate on the server. How do I achieve that? Can it be done with NSUrlConnection, CFNetwork or do I have to develop a whole lot myself with BSD sockets? Is there some open source ...

Automate the XCode build settings

I've developed a static library that I'd like to share between XCode projects. I did some reading to learn exactly how to include this library as a binary dependency so that it runs on both the device and the simulator and that lead to a couple of manual steps which I'd now like to automate. Overall I'd like to be able to release new ver...

iPhone Quartz curve jaggy and has dark border

I've got a weird issue with quartz. The first time I run the piece of code below, the line will be drawn like the line to the right in the image. The second time (and every time after) these lines are executed, the line will look like the line to the left. Why does it look like that? It's all jaggy and seems to have a dark border. If you...

Custom UIButtons

I need to implement a view with clickable areas just like HTML image maps. The background of the view will be an image that fills the entire canvas and the boundaries of each clickable area are different is size and shape. What is the best scenario to do this in iPhone? ...

Scroll stackLayout view in iPhone web application

Hi, I'm developing a web application for the iPhone using Dashcode. I would like to scroll a view of the stackLayout since the div exeeds the screen of the iPhone. "overflow: scroll" doesn't work unfortunately Any ideas? Thanks a lot ...

Adding phone number to iphone contact - but NOT replacing!

I am trying to replicate the behavior that the iphone that happens when you tap and hold on a phone number link in a text field you get a menu "create new contact" and "add to existing contact". I have this working except for one thing. In the "add to existing" apple implementation if there is already a home contact, it just adds anoth...

Convert PowerPoint (ppt) to PDF using C/Objective-C (maybe even on an iPhone)

Greetings, I'd like to convert a PointPoint file to PDF using C/Objective-C (bonus points if you suggest a solution that could run on an iPhone directly). There are a number of Java libraries to work with MSFT files (odftoolkit, apache poi), but I'd really like to perform this operation on an iPhone device. Apple has built in libraries...

Iphone NSPredicate how to do an INNER JOIN?

Hello, I have been looking thru the documentation and some other posts in this site, but I simply cannot understand how to work this out, which is actually very simple in SQL. Basically I have 2 entities Instruments and Deals. And the "Deals" use an "Instrument" to perform a desired operation. Now I want to list Deals attributes and t...

iPhone SDK function/method with arguments

I'm creating an app in which I do the same thing multiple times. I'm going for as little code as possible and I don't want to repeat myself. I need the PHP equivalant of a reusable function, where I set an input, and the function will return the output. The app is a URL shortener, so the input as you may assume is a URL, and the outpu...

GameKit wifi connection?

I've read that as of iPhone OS 3.1, GameKit supports wifi connections. But the documentation states: "If your application configures the peer picker to allow Internet connections, your application must also dismiss the peer picker and present its own interface to configure an internet connection." Does this still stand? ...

iPhone XMLRequest

Hello, I have an API which sends an XML Request to a server: <?xml version="1.0" encoding="UTF-8"?> <request type="handle" action="update"> <userdata> <username>YourUsername</username> <password>YourPassword</password> </userdata> <handledata type="PERSON" id="HandleId"> <name>Mustermann</name> <firstname>Max</firstname> <organization>F...

Using self in method call

When using property/synthesize for a UITableView, UIButton, etc should self be included in the method call on that variable? Using UITableView as an example is there a difference between [self.myTableView visibleCells] and [myTableView visibleCells]? Or say [self.myImage setImage:...] and [myImage setImage:...]? I've seen Apple code tha...

UIImageView: Rotated and Scaled. How do I save the results ??

Hi All, I am trying to save a rotated and scaled UIImageView as an UIImage in the position and with the zoom scale that the user edited too. But I can only manage to save the original image as it was before editing. How can I save the image as it is shown in the UIImageView with the same scaling and rotation? I have read that I need to u...

iPhone SDK - CCATS required if using Keychain Access?

Hi, I'm planning on using Keychain in an iPhone app to store some username/password information. Am I still required to file for an CCATS? Thanks, ...

touchtouchEnded is not getting called after touchesBegan and touchMoved

Hi There, I am having a strange effect with touches. Sometimes when I swipe the screen slowly the touchBegan and touchMoved get called but not the touchEnded, which kinda screws up my view movements. How is it possible that touchEnded doesn't get called? And my finger leaves the screen without running off the sides or anything like that...

Memory Management of Interface Builder Outlets

I am using @property(nonatomic, retain) for my IBOutlets for an iPhone application. However, I'm not sure how to make sure I'm managing memory with them properly. The IBOutlets are all set up in Interface Builder, so I'm never calling alloc manually. This means that I'm not sure when and if to deallocate them or when to set them to point...

Adding An AlertView At viewWillAppear, iPhone

Hello all, I am attempting to show an alert view as soon as the view appears (without using a button). In viewcontroller.m I have: - (void) viewWillAppear:(BOOL)animated { UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"User Information" message: @"Hello" delegate: self cancelButtonTitle:nil otherButtonTitles:...

How to trigger Mouse-Over on iPhone?

This might seem like a really dumb question, but I am writing an application and I have come across where my mouse-over, mouse-click and mouse-hover need different events bound to them. Now on Internet Explorer, Firefox, and Safari. It all works as expected. However, on my iPhone the actions will not trigger. Now my question is are the...

How do I [legally] get the current first responder on the screen on an iPhone?

I submitted my app a little over a week ago and got the dreaded rejection email today. It reads as follows: Dear -----------, Thank you for submitting --------- to the App Store. Unfortunately it cannot be added to the App Store because it is using a private API. Use of non-public APIs, which as outlined in the iPhone Develope...

Can you create custom build rules for XCode based on file type?

I have a project with a bunch of .png files that I want to convert to PVRTC compressed textures. Right now, I'm using a custom XCode run script phase that looks like this: TEXTURE_TOOL=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool $TEXTURE_TOOL -e PVRTC --bits-per-pixel-2 -o "$SRCROOT/images/select_menu_bgs1.pvr...