I have stored values in NsMutableDictionaries . ThenI stored all the dictionaries in NSMutable Array. I need to access the values ? How can I do that ?
-(void)viewDidLoad
{
[super viewDidLoad];
self.title = @"Library";
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButton...
I have 1 string NSString *string = @"2010-04-16 15:42:58";
now i want to convert it to 16 april
So,my string will be converted to NSString *stringOutPut =@"16 April";
...
When my interface rotates i want to call certain functions. How can I do these actions?
...
Hi,
How do i add a new line characters to html body of mail composer?
I have a string:
NSString *emailBody = [NSString stringWithFormat:@"<html><b>%%0D%%0AHello,%%0D%%0AHere's a link to your product%%0D%%0A<a href=\"%@\">click here</a>%%0D%%0A best regards</b></html>", currentProduct.url_product_details];
[picker setMessageBody:email...
from 1 week if my gps app fail to retrieve signal (eg: testing in my home) i don't receive any aler.
i've setup my error notification in this way
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error { NSString *errorType = (error.code == kCLErrorDenied) ?
@"Access Denied" : @"Errore sconosciuto"; ...
There's already excellent code for browsing and viewing pictures on the iPhone, as shown by apps like Photos and Facebook, and I don't feel like inventing the wheel again. I thought that this functionality would be built into the API, but I'm having a hard time finding it. Am I blind or do Apple really force us to write our own?
...
Is there a way to load a table view that opens at the second or third section (rather than at the top)?
...
So I'm trying to register for the MPMoviePlayerDidExitFullscreenNotification notification in my universal app (iPhone and iPad).
Problem is, OS 3.1.3 doesn't support this notification, and just crashes.
I've tried version checking, like so:
if ([MPMoviePlayerController instancesRespondToSelector:@selector(setShouldAutoplay:)])
{//Chec...
I unsuccessfully tried to use a table of 4 columns in my iphone app as storage for some data, through Core Data. I made all the steps in the tutorial, just like in Location sample code but still it refuses to work. I got the +entityForName: could not locate an NSManagedObjectModel error and after tons research I still can't pass over thi...
self.navigationItem.rightBarButtonItem.enabled = FALSE;
[activityIndicator startAnimating];
//[myview sendSubviewToBack:self.view];
//self.view.hidden= TRUE;
myview.hidden= FALSE;
activityIndicator.hidden= FALSE;
dt = [[DateTime alloc] init];
This is my method in this when user click on leftbar button of navigation this method fires he...
I am entering mobile development. I have been working primarily in .NET since 1.0 came out in beta. Before that, I was mostly a C++ and Delphi guy and still dabble in C++ from time to time. I do web apps quite a bit so I am reasonably proficient with Javascript, JQuery and CSS. I have also done a few Java applications. I started web...
I have a method which animates one of the subviews of UIWindow and then removes it from UIWindow using removeFromSuperview. But when I put removeFromSuperview after animation block, the animation never shows, because removeFromSuperview removes the UIView from UIWindow before the animation plays :-( How can I delay removeFromSuperview so...
Hi there,
I have a UITableView (on a navigation controller stack) which is showing details for a custom model object. The object has an array property to hold child objects which each have a latitude and longitude property.
As I am 'lazy-loading' everything from a web service API, the array of child objects is not populated until the f...
Ok so I am taking a screen shot of a photo I took with my camera on the iPhone. I put the camera photo into UIImageView and grab a screenshot of it using this sort of code (this is from http://www.skylarcantu.com/blog/2009/10/16/saving-a-view-as-an-image/)...
- (void)takeScreenshot {
UIWindow *theScreen = [[UIApplication sharedApp...
Hello all, this is my first post. I am building an iPhone app and stuck with the following:
unsigned char hashedChars[32];
CC_SHA256([inputString UTF8String], [inputString lengthOfBytesUsingEncoding:NSASCIIStringEncoding], hashedChars);
NSData *hashedData = [NSData dataWithBytes:hashedChars length:32];
NSLog(@"hashedData = %@", hashedDa...
I'm using Eric Czarny's Cocoa XML-RPC framework to make a call to the Wordpress API's. I've downloaded the sample app from Wordpress which gives some good examples. Unfortunately the good examples are for every call EXCEPT wp.newComment.
I'm trying to post a comment using the code below and I keep getting an error with a localized des...
I try to use the UIActionSheet within my iPhone App but have the following problem. When I tap the cancel button "I don't", the app crashes. When I remove the NSLog statement from the actionSheet:clickedButtonAtIndex: it does not. The "Yes, do it" button works just fine and I see the log statement in the console. What's wrong?
- (void) ...
Is there a way to find ypos in a UITextView, or/and find wich row that currently marker is active?
Regards.
...
I've got a couple of wav files and possibly a mp3 that I'd like to mix down to a single wav or mp3-file. I'm using C/C++/Obj-C (iPhone). I have really no experience with this sort of thing. If anyone could give me some pointers, I would be very grateful.
Basically what I want to do is similar things like for example Audacity can do, but...
Hi, Im working on simle RSS reader. This reader loads data from internet via this code:
NSXMLParser *rss = [[NSXMLParser alloc] initWithURL:[NSURL URLWithString:@"http://twitter.com/statuses/user_timeline/50405236.rss"]];
My problem is with encoding. RSS 2.0 file is supposed to be UTF8 encoded according to encoding attribute in XML fi...