iphone

Detecting multiple screens on iOS pre-3.2?

iOS 3.2 introduced [UIScreen screens] which allows me to determine how many screens are connected to the device. However, I'm looking for a way to determine this on a device with a previous version, prior to 3.2. Any thoughts? ...

how to send image data from server back to iphone?

Hi, I am storing images data as blob data type on MySQL on server. Now I would like to retrieve images from that MySQL database to iPhone. But I don't know how I can do that, can somebody suggest me some solutions? I can view the images using PHP script on server. But how I send image data to iPhone? In Iphone, I am using NSURLConnecti...

UISlider Doesn't Receive Touch At Right End

Hey guys, I've got a UISlider in my main view, but it doesn't receive touches at the right end. I thought it could be a pesky view covering it, but it definitely isn't. Has anyone got any other ideas? ...

How to draw two polylines in one graph with Tapku?

I've got two sets of data to draw on a graph. And I am trying to use Tapku. But I find that with the raw library, only one line can be drawn on one page. I am wondering how can I draw two ? ...

iPhone -- renew team provisioning profile

In the provisioning portal, the "renew" button for my team provisioning profile is grayed out. And said profile is expired. How can I renew it? EDIT: I found the "automatic device provisioning" checkbox and "refresh" button in the organizer in Xcode. But when I select the team profile, check the checkbox, and push the refresh butto...

UIButton in UIView in UITableView = can't click the button

If I add the button straight everything goes fine. I'd really like to add it inside a view and still be able to click it. Here's the code: UIView *containerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 300, 60)] autorelease]; UIButton *footerButton = [UIButton buttonWithType:UIButtonTypeCustom]; footerButton.frame = CGRectMake(...

UIScrollView event handling

Hi everyone, I'm trying to make my own custom UIScrollView for some reason. The question is, is it possible to exactly mimic the event handling behavior of UIScrollView including 'delayed content touches' and 'cancellable content touches'? That is, the custom scroll view should delay handling the event until it can determine if scrollin...

How to parse xml data which have special characters in iOS?

How to parse xml data which have special characters ( ' , " , < , > etc) in iOS? In NSXmlParser's delegate, when it reads special characters ( ' , & ), it thinks this is open new eplement? How can i ignore those special characters? ...

iphone navigation controller - transition between portrait and landscape view controllers

In my iphone app, i've two view controllers. First one is a portrait and second one is landscape. When app is started, it will show the portrait view. On click of a button in portrait view, the view transitions to landscape view. Here, i'm using navigation controller. If both the views are portrait, pushing the next view via navigation c...

How to creating custom dialog boxes with cocos2d?

1、top http:// i.imgur.com/LszAu.png 2、middle http:// i.imgur.com/j82Dr.png 3、bottom http:// i.imgur.com/OP9hu.png dialog http:// i.imgur.com/ed3W2.png How do i do with 1,2,3 to a dialog? And dialog can stretch with content? I hope you can write a simple example for me~~thanks! ...

repeat local notification

I use below code for repeat local notification every week notif.repeatInterval = NSWeekCalendarUnit; How can i repeat Notification every Sunday,Monday ? ...

local Notification + run specific function

I want to do specific job when app notify means instead of show alert run specific function is it possible ? ...

Storing long long values in Objective C

I'm working with an API that returns a JSON dictionary. One of the keys is "Variant Hash", and the corresponding data is an integer like this: -7331108254952843887 or 6209894088655053576. I'm assuming this is a long long value. I'm serializing this data with NSCoder, and I'm not sure which encodeValue: method to use. There is no enco...

where can i find an uncompressed video recording from iPhone 3G/3GS/4

Hi, I'm experimenting with video processing and I'm looking for uncompressed video frames from iPhone. It is possible to record them since iOs 4.0 by dumping a buffer from api to the file.. Google didn't help.. Anybody? Where can I find such videos to download, or perhaps there is an app for that? ...

two table view data management on iphone

i have 2 buttons A and B both display tableview and data initially same data but then in B there is a search button so when user serach tableViewB data changes and then if i press A then i can see the data shown in B *my earlier data A is override by B* how to solve this issues so that i can see my old data in A i did 1) different I...

sqlite3 using fts3 create table in my mac terminal and how to use it in iphone xcode project?

Hi I am trying to use fts in my sqlite database, i have created a database and inserted ,all the records ,using sqlite query in my mac terminal, and used it in my iphone xcode project ,its worked fine. now i am trying to integrate fts3 using the links http://pp.hillrippers.ch/blog/2009/08/08/Static+SQLite+Library+with+Unicode+Support...

How to create a single image from an overlayed image and a picture taken with iPhone?

There are countless apps out there that do this ... but I'm curious as to what suggested way(s) exists for producing the highest quality image. Example of what I'm looking to do: Be able to overlay an image of a mustache on top of the iPhone's camera. Optional be able to resize/rotate that image. Take a picture and superimpose the ove...

iphone 4 images lose resolution

I have the following 2 issues with iPhone 4 images. Any help is appreciated. When using iPhone 4 if I access an image from photo library in my app and save it in a database, then retrieve it again, I see it has lost resolution. The same works fine on 3G - no loss of resolution. Any idea why this could be happening? I am using retina sc...

Sqlite problem?

hi, someone is using .sqlite file, someone is using .sql file, someone is using .rdb file...Which one is the best among this one? is there differences among them? ...

selecting different combinations from pickerview

I'm using a UIPickerView with 2 components (or columns). When you select an item in the first component, the contents of the second component. i.e., let's say that the left component represents a list of colors categories(red,green,blue, etc) and the right component holds the (red1,red2,red3 for red),(green1,green2,green3 for green)and s...