i have implementing one login page.I have to send password in encrypt format to the server using RSA algorithm.But not working can u advice me for this query.
Hi folks,
I'm willing to create a little frame to display animated ads in my app.
It could be simple little animations, or "3D" transition between ads, or combination of both.
I'm not familiar with graphic frameworks, I just used CoreGraphics, which I think is not optimized for that.
I thought of OpenGL, but maybe that's too much and takes too much ressources just for this little thing.
What do you think ?
The customer I'm making an app for would like to prevent the user from capturing some of his pictures. I don't think this could be done but better making sure...
hi . i try to use NSUserDefault or something like this , to save a specific view after quit from application and when user lunch application again load from that view ... but i dont know how!
I do this:
NSString *fullpath = [[NSBundle mainBundle] pathForResource:@"text_file" ofType:@"txt"];
Why the following message appear?
Is my code leaking?
2010-03-31 13:44:18.649 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x3909ba0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc80d0 0xcf2ad 0xcee0e 0xd3327 0x2482 0x2426)
2010-03-31 13:44:18.653 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x390b0b0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc80d0 0xc7159 0xd0c6f 0xd3421 0x2482 0x2426)
2010-03-31 13:44:18.672 MJIPhone[2175:207] *** _NSAutoreleaseNoPool(): Object 0x390d140 of class NSCFString autoreleased with no pool in place - just leaking
Stack: (0x1656bf 0xc6e62 0xcec1b 0xd4386 0x24ac 0x2426)
I want to get minimum and maximum date from date picker but minimum date should be "- 18" of current date and maximum date should be "- 100" of current date.
Suppose current year is 2018 then I want minimum date 2000 and maximum date 1918.
what I have done so far is :
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *components = [gregorian components:NSYearCalendarUnit fromDate:[NSDate date]];
NSInteger year = [components year];
int mindt = year - 18;
int maxdt = year -100;
// NSDate * MinDate = [components year] - 18;
// NSDate * MaxDate = [components year] - 100;
// self.datePicker.minimumDate = MinDate;
// self.datePicker.maximumDate = MaxDate;
but I cant get this integer to my date formate..
pls suggest any way ...
I have been using mach_absolute_time() for all my timing functions so far. calculating how long between frames ect.
I now want to get the exact time touch input events happen using event.timestamp in the touch callbacks.
the problem is these two seem to use completely different timers. sure, you can get them both in seconds, but their origins are different and seemingly random...
is there any way to sync the two different timers?
or is there anyway to get access to the same timer that the touch input uses to generate that timestamp property? otherwise its next to useless.
so here's my function
+ (void) AddAddress:(NSString*)ip:(NSString*)mac {
NSMutableDictionary* currentAddresses = [[NSMutableDictionary alloc] initWithContentsOfFile:[self filePath:ADDRESSES_FILE]];
[currentAddresses setObject:mac forKey:ip];
[Configuration Write:currentAddresses];
[currentAddresses release];
}
[self filePath:ADDRESSES_FILE] returns a string containing the full path of a file (ADDRESSES_FILE) located in the Documents. The file may not exist, in this case I want to just write an object to the dictionary and then write it down
the problem is that when i do setObject forKey it doesn't add anything to the dict (if i just do alloc init to the dict, it works fine, but i want to read the records from the file, if there are any, and replace/add a record by using the AddAddress function)
Is there going to be a way with the 4.0 SDK to create a tool similar to Pandora(which was demoed today), so when the phone is locked, I can manipulate my app? So basically if my app was running, and my phone locks I don't have to unlock the phone to toggle something for the app?
I have a verb conjugation app that displays verb translations in the first cell of a table. At present the translation list is just a string (comma-separated list) but I'd like to change it to have clickable buttons. I had a play around adding buttons to the cell view without too much success but my only experience with custom cells has been using specific positioning so I'm unsure as to how to achieve a dynamic list of buttons (varying widths) within a cell.
Any help greatly appreciated.
Cheers.
hi,
I have some problem when i test In-App purchase,there is problem of iTunes connection,so
i want to know that can we use sandbox Environment without itunes connection.Please help
me out for this problem.
Thnx
I have this code [tableView deselectRowAtIndexPath:indexPath animated:YES];
Why doesn't the table view deselect the row, What am i doing wrong.
EDIT:
-(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
even though I select debug, i get this: a valid provisioning profile for this executable was not found
.
i can't install it on my phone again. what should I do?
I have a login form using a UITableView. One of the cells has a UISwitch which when on will delete the row above it and when off reinsert it.
But the first cell automatically has the keyboard up when the cell is created (basically when the view loads) (by using [cell becomeFirstResponder];)
Inserting/deleting any of the cells means that the keyboard animates out and then animates back in.
I'd like to remove this so the keyboard stays up while rows are deleted/inserted.
Hi everyone,
Let say I have an entity user which has a one to many relationship with the entity menu which has a one to many relationship with the entity meal which has a many to one relationship with the entity recipe which has a one to many relationship with the entity element.
What I would like to do is to select the elements which belong to a particular user (username = myUsername) and particular menu*s* (minDate < menu.date < maxDate).
Does anyone have an idea how to get them?
Thanks
I've been working on a Cook Book App and I've been making each page individually which takes a really long time to do, I asked a question similar to this and it was brought to my attention that you can setup a way to automate the design process so all you need to do is input your data.
Can someone please explain in as much detail as possible how you setup your xcode files/code to automate this process
Thanks
I need help on how to find out how many days it has been (seven day weeks, MSTimezone) since May 6th, 2009
[NSDate *m62009 = [NSDate dateWithTimeIntervalSinceReferenceDate:231638400];
[m62009 setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"MST"]; (to help you - 231638400 seconds from 1/1/2001)
I am trying to build an app which will have a bunch of cards that the user needs to drag and drop them onto specific drop zones. How would one go about detecting this and if the card is not on the drop zone then it should slide back.
Any suggestions on how to structure this app?
Hi everyone,
I would like to use my custom NSManagedObject like a normal object (as well as its regular functions). Is it possible to modify the class in order to be able to initialize it like a normal object?
[[myManagedObject alloc] init];
Thanks
edit: to clarify the question, will it screw everything up if I change the @dynamic with @synthesize in the implementation?
Hi dudes,
i'm starting to implement AdWhirl in my application. i follow the instructions which is belong to adwhirl but i cant see any ad in my application.i add the following methods in my viewcontroller class
- (void)viewDidLoad {
[super viewDidLoad];
AdWhirlView *adView=[AdWhirlView requestAdWhirlViewWithDelegate:self];
[self.view addSubview:adView];
}
-(NSString *) adWhirlApplicationKey{
return @"myAdWhirlKey";
}
-(UIViewController *) viewControllerForPresentingModalView{
return self;
}
i doesn't display anything. please help how to implement AdWhirl
I have UITabBar in view which have 5 tab. I am using didSelectItem delegate to open different view i.e. I am NOT using TabBarController.
My problem is on view load I need first tab get selected by default. Is there any property in TabBar which we can set to make it selected.
Thanks
In my app I try to scroll a UITableView to the top once after I updated the content of the table. However, under some circumstance, my table is EMPTY. So I got the following exception:
Terminating app due to uncaught exception 'NSRangeException', reason: '-[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:]: row (0) beyond bounds (0) for section (0).'
how can I catch this exception? I tried
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
if (indexPath != nil) {
[EventTable scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];
}
but it doesn't catch the exception because indexPath is not nil.
Hello all! I am trying to make an app that will only be viewed in Landscape. I have looked up some tutorials (albeit older ones) and have done the following:
-set up the info.plist to include a key for uiinterfaceorientation
-in the main view controller I have set the frame to be 480 x 320
Now, the first screen loads up ok. Everything is where it should be and whatnot. However, if I click a button that is set to present a modal view controller nothing happens. Everything is linked and coded correctly but nothing happens when I press the button. Am I doing something wrong with trying to force landscape?
At it's basic, this question is a how do you effectively make an app that will only be in landscape mode? Thanks for any help.
Hi,
I want to store / save personal preference settings like Email, Phone number for an App. I have few forms which send info by Email to my ID. I want to know the Email & Phone number of user so I can contact this person if need be. I don't want users to keep entering their Email ID & Phone No. everytime in each form. It's wise to take these inputs (Email & Phone) just once per device / per App installed on the device.
I am trying to use .plist for this purpose. I have no success. How do I do it? Any example code (or) links?
Thanks. I would appreciate any help.