This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am Having Four buttons.If i Click a button i have to show Image in right side of a button.But am creating button with for loop.if i click first button only first button should show imageview.then,if i click second button it should show image only in second button.This is my code. | |
How to do this?? | |
arrayOfButtons = [[NSMutableArray alloc]init]; | |
for (int i = 0; i<LABELNAMES_ARRAY.count; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am Having Four buttons.If i Click a button am showing Image in right side of a button.But am creating button with for loop.This is my code. | |
How to do this?? | |
arrayOfButtons = [[NSMutableArray alloc]init]; | |
for (int i = 0; i<LABELNAMES_ARRAY.count; i++) | |
{ | |
[self createButton:LABELNAMES_ARRAY[i] originValue:i]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
( | |
sdfssdsdsdsdsfdsd, | |
"Software Testing", | |
"Mobile Applications", | |
BlackBerry | |
), | |
( | |
"App development" | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text is my input String… | |
NSRegularExpression *expression = [NSRegularExpression regularExpressionWithPattern:@"(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))" options:NSRegularExpressionCaseInsensitive error:NULL]; | |
NSString *someString = text; | |
NSString *match = [someString substringWithRange:[expression rangeOfFirstMatchInString:someString options:NSMatchingCompleted range:NSMakeRange(0, [someString length])]]; | |
NSLog(@"match==>>%lu", (unsigned long)match.length); | |
if(match.length>0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i wanna to move next textfield if i click next button in keyboard. | |
-(BOOL)textFieldShouldReturn:(UITextField *)textField | |
{ | |
[textField resignFirstResponder]; | |
NSInteger nextTag = textField.tag + 1; | |
// Try to find next responder | |
UIResponder* nextResponder = [textField.superview viewWithTag:nextTag]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (IBAction)btnAddContentTapped:(id)sender | |
{ | |
[self CreateDict]; | |
} | |
- (void)btnAddTaskTapped:(id)sender | |
{ | |
[self CreateDict]; | |
} | |
-(void)CreateDict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Am having ContentCell.xib and taskcell.xib.First,While Clicking the button am loading ContentCell.xib it shows the ContentCell in row0.In that ContentCell am having the addContent Button.If i click means it should show same Contentcell in Row1.Then, am having the addTask Button in my ContentCell.If i click that addTask button means, it should show the taskcell.xib in Row2. | |
My Problem is, if i click add Task means, taskcell.xib shows in Row0.Also if i click addContent button means, it should show above Task,which is Row2.and taskcell should come at Row3. | |
-(void)btnAddContentCellTapped:(id)sender | |
{ | |
static NSString *simpleTableIdentifier = @"SimpleTableItem"; | |
ContentTableViewCell *cell = (ContentTableViewCell*)[_tblView dequeueReusableCellWithIdentifier:simpleTableIdentifier]; | |
if (cell == nil) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[self openPhotoAlbum]; | |
- (void)openPhotoAlbum | |
{ | |
[[NSOperationQueue mainQueue] addOperationWithBlock:^{ | |
UIImagePickerController *controller = [[UIImagePickerController alloc] init]; | |
controller.delegate = self; | |
controller.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; | |
[self presentViewController:controller animated:YES completion:NULL]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
int n=8; | |
for(int i=1 ; i<=n;i++) | |
{ | |
for(int j=1 ; j<=n; j++) | |
{ | |
// 1.print star for 1st row and 8th row from 3rd col to 6th col 2.for 1st column and 8th column from 3rd row to 6th row | |
// 3.print star for 2nd row and 7th row with 2nd col and 7th col 4.print star for 8th row and 8th col for q starting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Program running but Label is not showing in my cell...What may be a problem?? | |
PaymentTableViewCell.h | |
@property(nonatomic,retain)UILabel *amountLabel; | |
@property(nonatomic,retain)UILabel *unitLabel; | |
- (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier; |
NewerOlder