iphone

iPhone + selecting a portion of UIImage using some rectangular frame and than cropping it

Hello, I have requirement of selecting a portion of UIImage displayed on iPhone screen (for e.g. selecting the face from the image of some human being) using some rectangular type of frame. It means a rectangular type of frame can be moved across the image to place it at portion that we want. After placing it, I need to resize the fra...

iphone - data signing using NSData of the private key

Hi I am working on a e-banking iphone application. I am using WSS with XML-Signature to sign the requests to the customer's SOAP server. Since the iPhone device can not be trusted (due to jail-breaking), the customer requirement is to manually encrypt the RSA key pair (using AES128) before storing the keys into keychain. From what I ...

iPhone submission: "The binary you uploaded was invalid. A pre-release beta version of the SDK was used to build the application"

Hello, I have Xcode 3.2.3 (Pre-release) and an iPhone with OS 4. I just finished my game using Cocos2d for iPhone OS 3, and I want to put it on the AppStore. I followed this tutorial Building Your App for Distribution, and when I upload my .zip file, I get this error : "The binary you uploaded was invalid. A pre-release beta version o...

Is there a file management library for the iPhone Documents folder?

I am look for file management features, such as: folder listing file listing create/rename/delete folder rename/delete files move files among folders via a UITableView. BSD-like licensed code preferred. Thanks ...

Horizontal Circular Scroller in XCODE

How can I use or make a horizontal circular scroller in an iphone application? which works like a slide view ...

How do I catch global exceptions?

Is there a way to catch global "crashing" app exceptions like objc_exception_throw, EXC_ARITHMETIC etc. in code? I need that because I want to do some things before the app gets killed by the system. ...

pass value through url

hi all, i hv a question. my url is some thing like this http://www.google.com?to=shishir&from=friend and i hv 2 textfeild from where i m getting value of to and from. i need to set those values of 2 textfeiilds into the URL to="values from textfeild" from="value from textfeild" to create a somewhat called a dynamic URL. how ca...

Can I do this?? Trying to load an object from within itself.

Hi all! I have an object which conforms to the NSCoding protocol. The object contains a method to save itself to memory, like so: - (void)saveToFile { NSMutableData *data = [[NSMutableData alloc] init]; NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data]; [archiver encodeObject:self forKey:kData...

Problem with pre-beta sdk - even after reinstalling SDK 3.2

I'm trying to upload the binary for a new app, but always get this errormessage: "The binary you uploaded was invalid. A pre-release beta version of the SDK was used to build the application." I know several people have asked a similar question, but I've tried all suggestions from the answers there without success. I used the XCode 4.0...

How to change UIBarButtonItem Title - iPhone SDK

Hi Can anyone help me in that I am only trying to change the Title on an UIBarButtonItem from a different class. My code is: - (IBAction) spanishPush { SafetyTalks *bbiTitle = [[SafetyTalks alloc] init]; bbiTitle.bbiOpenPopOver.title = @"Spanish"; } SafetyTalks = the class I am trying to reference bbiOpenPopOver = the UIBa...

How to resize a UINavigationController in iPhone?

Hi, I have created a application with UINavigationController and it is appearing fine now i want to make the size of the NavigationController to a smaller size. How can i do it? ...

Web service for Location name using Latitude & Longtitude

I have an iPhone application where i need to find out the current location(in terms of city name or probably the address). But i'm not been able to do that. I can find out the current latitude and longitude. Is there any web service(preferably free of cost) which can return me the current location name if i supply the latitude and longit...

How to use performSelector:

How to use performSelector:onThread:withObject:waitUntilDone:? here in onthread i have to use other thread not main thread. How to create other thread? give me some sample code. ...

Can't add or remove object from NSMutableSet

Check it: - (IBAction)toggleFavorite { DataManager *data = [DataManager sharedDataManager]; NSMutableSet *favorites = data.favorites; if (thisEvent.isFavorite == YES) { NSLog(@"Toggling off"); thisEvent.isFavorite = NO; [favorites removeObject:thisEvent.guid]; [favoriteIcon setImage:[UIImage ...

IB pushing view up or down

Hi All, I have a quick question I'm hoping someone out there might have an answer for. I have a tab bar app that I have built that has navigation controllers on tabs 1 & 2. The first tab appears to let my view slide underneath of the navbar at the top, while the second doesn't. The second tab is a favorites section where I am allowin...

UITouch object behaving oddly

Hi, I wanted to get points where user is touching on the screen therefore I wrote following code which will fire when user will touch somewhere on the screen -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [super touchesBegan:touches withEvent:event]; UITouch *touch = [[UITouch alloc] init]; touch = [touc...

How to enforce horizontal scrolling on UITextView?

I have a UITextView and I would like to only allow it to be scrollable horizontally only. Basically when the UITextView word-wraps I want the user to have to scroll horizontally to be able to view the rest of the contents. ...

UITextField placeholder looks strange when UITableViewCellSelectionStyleGray

Hello, I've set the background color of my UITableViewCells to Gray. But if there's a UITextField in the cell, the placeholder doesn't change their color to white/black and it's almost impossible to read it, and look stranges. The UILabel from the cell changes their color when it's selected or not, but the placeholder remains always t...

Why does addSubview load the view asynchronously

I have a UIView that I want to load when the user clicks a button. There happens to be some data processing that happens as well after I call addSubview that involves parsing an XML file retrieved from the web. The problem is the view doesn't show up until after the data processing even if addSuview is called first. I think I'm missing s...

Find the size in memory of a UIView programmatically?

Hi, Is it possible to find the size, in memory, of a UIView (or any object for that matter) programmatically? Thanks! ...