iphone

Rearranging between sections in UITableView

I have a UITableView with 2 sections in it. I have enabled rearranging in my table view, but I have a strange problem. I do not want the user to be able to rearrange rows between sections (I only want users to be able to rearrange rows within their section). If I try to drag a row from the first section to the second section, it will no...

Save a UIImage from a UIImageView with CGAffineTransform

I have a UIImageView within a UIScrollView which I have enabled the user to perform any number of flip and rotation operations on. I have this all working which allows the user to zoom, pan, flip and rotate. Now I want to be able to save the final image out to a png. however it is doing my head in trying to work this out... I have seen...

UITableViewCell - displaying accessory view beside rearrange control

In the Safari bookmarks manager on iPhone, the UITableView seems to have behaviour that isn't standard. I'm referring to this: In edit mode, the bookmark UITableViewCells have both a rearrange control and a UITableViewCellAccessoryDisclosureIndicator accessory view next to them. How do you get both? In my table views, when you go into...

Can't find iOS FaceTime protocol documentation

As per the title. I searched all through the Apple website, and cannot find anything about it. I am not an iPhone developer member (yet) so don't have access to that stuff. I just want to develop an Android application that can talk with the FaceTime protocol. It would be a bit silly if we all had to pay Apple just to view the FaceTime ...

keyboard hiding textfields in tableViewController

Hi.. I am using a tableViewController having 2 sections .... 1st section has 7 rows & 2nd section has 2 rows. So when i edit in textfields of 2nd section keyboard hides these field so how i will handle keyboard for these fields only.(i am using tableviewController which has default scrolling). I am new to objective -C.....Your help plea...

Maintain aspect ratio when auto-rotating interface

Hey guys, I'm making my first iPad app, and because we have to support all orientations in order to comply with the H.I. guidelines, I'm learning about the autoresize mask thing. I was just wondering if anybody could give me advice on how to ensure that an element maintains its aspect ratio upon rotating? So, let's say I have a square...

how can i display image from url?

I have a string variable tmpImgURLStr which contains URL like www.abc.com/img.png. i want to display that image in my imageView for that i have use some code but it's not working which is given below: NSLog(@"Img URL === %@",tmpImgURLStr); NSData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:[NSString stringWithF...

UIImage View + Pinch/Zoom feature when image is downloaded from web

Hello, I have a UIImageView, which pics up different images from the web, they are all different res. I have them to display as Aspect fit so that the whole picture displays even if it means leaving empty space on top or sides. What i want to have the feature of doing is, once its displayed, to zoom in and out using the pinch or any oth...

UISwipeGestureRecognizer Swipe Distance

Any idea if there is a simple way to lengthen the distance a swipe has to travel before being recognized. Seems the the default is really short. It's more than a tap, but just barely. Do I need to create a custom gesture recognizer to override this distance? Thanks. ...

How to improve performance of iphone application in wifi environment

Hi All I have developed an application for iPhone, which is continuously interacting with database ... I have observed that it is running fine in 3G environment but in wifi its performance is not good. Can someone suggest what can be the reason for it? or can I do anything to resolve it? Thanks Deepika ...

altering XML through programming?

hi, I am using following XML such as <RequestData> <MyRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" companyId="google" companyIdType="Research" EstimateType="TARGETPRICE,REVENUE" ...

How to make an iAd integrated iPhone app working on previous versions of iPhone OS?

As title described, I integrated iAd into my iPhone apps. Everything worked fine in the iPhone simulator (iOS4). However, when I try to install it on my iPhone(version 3.1.3), I got an error: dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd Referenced from: /var/mobile/Applications/... Reason: image not found...

how to implement animation same as safari application in iphone?

I have implemented one game application.In which i want to implement one animation same as safari application in iphone. In safari suppose there are 5 page open.User can scroll this five pages by touching bottom buttom.Suppose user touch on 3rd number of page then then this page open with animation.I want to implement this type animatio...

Are there any examples for how to integrate iAds into an application?

I'm looking for sample code or tutorials on how to implement iAds in my iPhone application. Can anyone guide me to any resources about this? ...

NSString Doubt?

i want to initialize NSString is as "hai" with double qoutes..is it possible? any help please? but NSString *str = @"hai"; i want to convert it as "hai" without direct initialization?any help pls? ...

upload photo and publish story using FBConnect

In my iphone app,I want to let the user upload an image to his facebook photo Album and publish a story at the same time.The story's media field contains the uploaded image's url.I successly uploaded the photo and got the result's "link" and "src_small" property.But when I use FBStreamDialog to publish the story,I got: At last,I find ...

problem with implementing iAd to my project

hello I am implementing iAd to my project But the problem arises when i will included iAdd to my playlist page .then demo version of iAdd is shown but when i click that image it will not open the whole page.Butwhen i will try to empty xib then it will open the whole page.now i will tell the whole process of connection and code which i us...

how do I play sound in line with the iphone system's sound settings

I have mimicked the iphone keyboard tap sound. My problem now is that the 'Tock' sound is louder than the normal keyboard sound, and it still sounds even when keyboard clicks is disabled in the sounds setting on the phone. ...

adding multiple column in UITableView

I have multiple column and row data , i want to place it in table view also i want make it scrollable vertically as well as horizontally . how to do this ? please help... ...

Changes to Application Preferences not Saving or Not Immediately Available?

I've successfully created my application's Settings.bundle and the items I need within it. I can open the panel in the Settings app, change values, exit the Settings app go back in and confirm they are as I left them. I launch my app and read those preferences, I don't see the changes - not after the first launch. However, if I ex...