« first day (405 days earlier)      last day (851 days later) » 

04:53
can any one suggest me how to download pd file and save in our documents..now i am using this but it is not saving..dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSLog(@"Downloading Started");
NSString *urlToDownload = @"http://webaddress.com/pro/download/file.pdf";
NSURL *url = [NSURL URLWithString:urlToDownload];
NSData *urlData = [NSData dataWithContentsOfURL:url];
if ( urlData )
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
1 message moved from IOS Developer Family
 
5 hours later…
10:20
@NitinGohel in my viewController: -(void)refreshView:(NSNotification *) notification{


UIAlertView *alertView1 = [[UIAlertView alloc] initWithTitle:@"Reminder" message:@"You have a message!" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"View Message", @"Snooze Again", nil];
[alertView1 show];
[alertView1 release];

}
1 message moved from IOS Developer Family
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if(buttonIndex == 0)
{
//Cancel
}
else if(buttonIndex == 1)
{
[self viewMessage:msgID];

}
else if(buttonIndex == 2)
{

[self performSelector:@selector(SnoozeNotification:) withObject:nil afterDelay:0.25];

}
}
1 message moved from IOS Developer Family
 
1 hour later…
11:45
no @AliRaza.. for (UIView *dragedView in subView) {
if ([dragedView isKindOfClass:[UIImageView class]]) {
UIImageView *imageView = (UIImageView *)dragedView;
if(CGRectIntersectsRect(clikeMe.frame,imageView.frame)){
// handle right side
NSLog(@"you tuched");
}
}
}
 
2 hours later…
13:35
else if (indexPath.section ==1)
{
sectionContents = [[self tableContent] objectAtIndex:[indexPath section]];
contentForRow = [sectionContents objectAtIndex:[indexPath row]];

CellThreeLines *cell = [tableView dequeueReusableCellWithIdentifier:@"threeLines"];

[cell.cellName setText:contentForRow];
[cell.montProd setText:@"Title 1"];
[cell.producao setText:@"Title 2"];
[cell.acabamento setText:@"Title 3"];
[cell cellResults];
1 message moved from IOS Developer Family
1 message moved from IOS Developer Family

« first day (405 days earlier)      last day (851 days later) »