Hi Guys,
I would like to validate the emails and the phone numbers in my app.but I dont have any idea to implememnt this.can any one give me suggestions how to implement this with a sample code.
Anyone's help will be much appreciated.
Thank You
Monish
...
Hi again, How can I run a clock that allows me to measure the time to load until appDidFinishLaunching ?
I want to set a sleep call that extends the Defaul.png show time to 3 seconds regardless the speed of the underlying hardware.
...
I have declared UITableView in .h file. I have 5 section in the table view, now I need to set the tableview.editing= yes only for section 4.
How can I display the + button beside section 4 and have all other sections in editing = NO?
myTableView = [[UITableView alloc]initWithFrame:CGRectMake(0,0,320,415) style:UITableViewStyleGrouped];...
Having troubles finding a good way to get a string from a text file (separated by line breaks) randomly.
I want to do a setStringValue:@"random string from file here";
pretty much. Thanks in advance.
...
Hellow all, I am using navigation controller and have table views inside views.
when i select any cell it it will navigate to another view. so,from there if i click back button it come sto previous view.But,it showing the cell which is selected previously. I dnt want this .it should not show which cell we selected previously.
Could any o...
In tableView of Style grouped,what is the meaning of Etched Raised Separator? and how to use a 1 px line or "Etched Lowered" Styled line instead of Etched Raised separator.
...
I have this class that shows a popup.
I do a alloc-init on it and it comes up.
DarkVader* darkPopUp = [[DarkVader alloc] init:theButton helpMessage:[theButton.titleLabel.text intValue] isADay:NO offset:0];
It shows itself and if the user presses Ok it disappears. When do I release this?
I could do a [self release] in the class when ...
I know that the SplitView is new to iPad, it split the screen with left and right. But I want to split the screen with top and bottom. How can I do so? thank u.
...
Do you know of any source of paid code components or library for XCode and the Objective-C language like Component Source ?
It's a website for paid libraries of code that you can use in your project. In the past, when my team was working on a C# project I used two of them, DevExpress and GraphicsMill: We found them really useful. Now I'm...
Hi all,
Frequent visitor but first post here on StackOverflow, I'm hoping that you guys might be able to help me out with this. I'm fairly new to Obj-C and XCode, and I'm faced with this really... weird... problem. Googling hasn't turned up anything whatsoever. Basically, I get an EXC_BAD_ACCESS signal on a line that doesn't do any dere...
- (IBAction)randomnum{
int randomNumber1 = 1+ arc4random() %(49);
label1.text = [NSString stringWithFormat:@"d", randomNumber];
Local declaration of randomNumber hides instance variable.
How can i get round this warning?
thanks
...
Please see the youtube:
http://www.youtube.com/watch?v=FC95ARd96wI
notice that the 0:35 , the iPad bottom have a thin photo bar. Is it a private API or I need to create my own or Which UI Element will it be? Thz.
...
I have a tab-bar controller that loads a RootView.
The RootView has 4 buttons that will load a UITableView
I don't want my tab-bar to be visible in the RootView so I added the following code:
-(void)viewDidLoad{
self.hidesBottomBarWhenPushed = YES;
}
When I initially load the app the tab-bar doesn't appear, but when I click on a ...
Say you had the following two constructors:
- (id)initWithTitle:(NSString *)title;
- (id)initWithTitle:(NSString *)title page:(NSString *)page;
The second constructor is no different from the first, except that it sets up the member variable "page".
Since it basically has to do the same thing, is there a way to call the first one fro...
I would like to design an app that has a RootView with 4 buttons. Clicking on each button will load another view that has its own tab-bar controller. The tab-bar controller for each of the views is different.
If so, how do I go about implementing this?
...
Does anyone have a code snippet or a class that will take a long long and turn it into a 16 byte Hex string?
I'm looking to turn data like this
long long decimalRepresentation = 1719886131591410351;
and turn it into this
//Base 16 Hex Output: 17DE435307A07300
The %x operator doesn't want to work for me
NSLog(@"Hex: %x",decimalRep...
I know Ruby right now, however I want to learn a new language. I am running Ubuntu 10.04 right now but I am going to get a Mac later this summer. Anyways I want something more for GUI development. I was wondering if I should learn C on Ubuntu right now, and then learn Objective-C when I get an iMac? Will learning C give me an edge? Or sh...
Recently while trying to answer a questions here, I ran some test code to see how Xcode/gdb reported the class of instances in class clusters. (see below) In the past, I've expected to see something like:
PrivateClusterClass:PublicSuperClass:NSObject
Such as this (which still returns as expected):
NSPathStore2:NSString:NSObject
......
Hi all,
I have a UITableView in iPhone with enough cell to make it scrollable.
I would like to have a subview display whenever I click on a cell, rather than using the navigation controller behaviour.
The problem is that I cannot calculate the CGRect exactly to have the subview always centered in page, because the CGRect is calculated ...
I have a list of websites in a plist, when the app loads this populates a tableview (which is inside a navigation controller)
But I have added an add button to the navigation bar and then created another View Controller to deal with inputting of the new website (Like Title and URL). It is very similar to how the contacts app looks. Ther...