Hi, the ABPersonCopyImageData function in iOS4 SDK 4.0->4.02 seems to return uncropped image
and leads to terrible performance and crashing due to running out of memory. It used
to work fine on OC versions 3.0->3.1.3. I've tried upgrading to 4.02 but still same issues
Is there a workaround for this?
...
I'm trying to declare a variable inside an if statement. If the result of a query is YES then the object will be of one type, otherwise it will be of another type. A bit like this...
if (YES) {
ObjectTypeA *object = [[ObjectTypeA] alloc] init];
}
else {
ObjectTypeB *object = [[ObjectTypeB] alloc] init];
}
Once that's ...
I am trying to just set a session variable on one page, then load it on another page. This code works on Firefox on Windows 7. It does not work when accessing the same pages on my iPod Touch.
The first page is like this:
session_start();
$id = "e0vgrejdmkjbltrdrtqtnjgzmy1cqurfluuzodeyqjlcoey5rx0";
$_SESSION['id'] = $id;
The second p...
I couldn't find this method in the UITableView delegate documentation....can you tell me where I would look for the documentation for this method?
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
Thanks!
...
Hi guys! sorry if this is a noob question but i'm having difficulty implementing 2 nsfetchedresultsController in a tableView.
i wanted a fetchedresultsController in each section of the table (2 sections), something like this:
Wishlist
product
product2
Bought
product3
I know that for this example i wouldn't need 2 nsfetchedResult...
Hi friends,
I have ten arrays in my application. I want to write those array values into the (document s directory)plist. Is possible to put 10 arrays into the one plist?.Else i will create separate plist for each arrays. Which one is possible to implement my application?. Please guide me and give some sample links.
Thanks
...
Hi all,
I want to implement the date cell like this in my tableview, http://img408.imageshack.us/img408/4057/img0139.png
So how can I implement it?
Thanks a lot!
Dante
...
Hi, I'm using an NSTimer to animate an array of objects across the screen. Currently they move from left to right. However, I would like them to move in a circular fashion instead. How can I do this?
scrollItems = [NSTimer scheduledTimerWithTimeInterval:1.0/30.0
target:self
...
Hi everyone,
I'm putting in a UIDatePicker in a UIView and I can see that the UIDatePicker has a border that is some kind of a dark color on the bottom and it gets lighter as you get higher. I want the containing UIView to use the same colors so that the UIDatePicker flows with the rest of the view and doesn't stand out.
I can put in ...
I am saving a cookie value and then trying to send it back with a later request to use for authentication... it doesn't seem to be working.
NSString *savedCookie = [savedData objectForKey:@"savedLoginCookie"];
NSMutableURLRequest *requestObj = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlAddress]];
[requestObj addVa...
I am writing an ipad app that's going to list data, including images, from a WS.
I am going to consume a web service written in .net (.asmx). I looked at 2 examples,
the seismicxml that uses NSOperation and uses an xml feed.
another awesome example from Wei-Meng Lee that does not use NSOperation but shows how to make the soap envelop...
What is the best pattern for displaying images both on iOS3 and iOS4?
For example, here's code for a custom activity animation:
activityImageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"s01"],
[UIImage imageNamed:@"s02"],
[UIImage imageNamed:@"s03"],
[UIImage imageNamed:@"s04"],
[UIImage imageNamed:...
When I build my project (any project, really - I tried creating a new empty project with the same results), it builds fine with GCC 4.2 under either Xcode4 or Xcode 3.2.4.
If I build using LLVM 2.0 under Xcode4 or with LLVM 1.5 under Xcode3, I get compile-time build failures, but only when building for the Simulator.
The build errors...
Hi, am having some trouble with attempting to remove a memory leak from my code. In the code below, I get a memory leak on the line "configurationArray = [[NSArray arrayWithContentsOfFile:controllerConfigurationFilePath] retain];" however when I remove the retain, the application crashes and changing the retain to an autorelease also cau...
In my HTML code, I got a <div>. When the user taps anywhere inside that div, I'd like to alter various properties, like text size and background color. To me, this sounds a lot like creating two CSS styles for each state sounds like it should work, so I created the following CSS:
div.tappable {
background-color: red;
font-size: 10...
Hi,
I tried to create multiple iPhone apps using same XCode project and that worked ok, but when I want to install all of them into my iPhone, iTunes instead of adding the second app as new, it want to replace the existing one(the first one installed) with the second one.
I used for each application a different target and made a script...
I'm trying to use a UIImage as a button which gives the impression of it being turned on then off again within about half a second. This works fine if I switch it on but if I want to switch it off again it doesn't switch on at all. I have a short loop in there to prevent it switching on and off so fast I can't see it but it doesn't switc...
Hi,
I load my xib files through: initWithNibName programatically. If I set something like: [[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];
Shouldn't it load LoginController.xib if it is executed on iPhone and search for LoginController-iPad.xib on the iPad? This is not happening at my code, do I have to select ...
Hi everyone,
I am trying to develop an email-sending app which sends messages via custom API. The problem is that UITextView does not allow to display html content, and in order to forward/reply messages properly you sometimes need to edit an html-content that came from a previous message. However in a standard Mail.app on iPhone the ...
Hi,
After adding a view by pushViewController method, there will be a back button in the navigation bar to pop out the view. However, seems that iOS won't distory the view after popping it out. When will it be distory? Can we distory it manually when popping out the view?
thanks.
...