« first day (414 days earlier)      last day (842 days later) » 

06:07
- (void)eraserActived:(NSNotification*)notification
{
if ([[notification name] isEqualToString:@"eraserActived"]){

flag = [[[notification userInfo] valueForKey:@"eraser"] integerValue];

NSLog(@"Notification With X1 %d", flag);

}
}
this is the method of MyDrawingClass
I have used this in my controller :

- (IBAction)btnEraseTapped:(id)sender
{
[_scrollView removeGestureRecognizer:_rightSwipe];
[_scrollView removeGestureRecognizer:_leftSwipe];

[_btnWriteText setImage:[UIImage imageNamed:@"text_button.png"] forState:UIControlStateNormal];
[_btnAddImage setImage:[UIImage imageNamed:@"picture_button.png"] forState:UIControlStateNormal];
[_btnDrawing setImage:[UIImage imageNamed:@"edit_button.png"] forState:UIControlStateNormal];
[_btnErase setImage:[UIImage imageNamed:@"erese_button_hov.png"] forState:UIControlStateNormal];
3 messages moved from IOS Developer Family
 
4 hours later…
09:43
self.categoryDetail = [CompanyDetailDatabase database].categoryDetail;

NSMutableArray *arrt = [[NSMutableArray alloc]init];
for (CategoryInfo *info in _categoryDetail)
{
// NSLog(@" %@",info.category);
cat = info.category;
cat_id = info.uniqueId;
NSLog(@"%d %@",cat_id,cat);
[arrt addObject:cat];
}
self.pastUrls = [NSArray arrayWithArray:arrt];
1 message moved from IOS Developer Family

« first day (414 days earlier)      last day (842 days later) »