Hi All!
I have a UITabBarController with a set of tabs.
Some of them, when selected, show you a table.
The cells of the table, if touched, bring the user to a detail screen of the object in the cell itself using a "pushViewController".
When I click to a different tab, and I am in the detail page, I see the new tab page.
And this is fin...
I have the following method for my class which suppose to load the nib file and instantiate the object.
- (id)initWithCoder:(NSCoder*)aDecoder
{
if(self = [super initWithCoder:aDecoder])
{
// Do something
}
return self;
}
so based on this init method how do u
instantiate an object of this class?
The init method...
There are a lot of questions about problems with iAds in iOS 4.1.
I don't have problems with getting 2-3 first test banners. Delegate stops receiving bannerViewDidLoadAd: and bannerView:didFailToReceiveAdWithError: messages after been moved off-screen in response to bannerView:didFailToReceiveAdWithError:.
The same code worked with iO...
My goals is search bar on top my table that searches the track_tiles in Dictionary. This table was built by Parsed data into an NSDictionary. My Dictionary for the table looks like...
tracksDict: {
"Cold Calling" = (
"<Track: 0x5f39bc0>",
"<Track: 0x5f3a3e0>",
"<Track: 0x5f3a990>",
"<Track: 0x5f3...
How should I write an init method for a class which is sub-classing an NSObject
Let's say i have a class named :
CustomButton subclassing UIButton
I have an empty nib file named
CustomButton.nib which has a single
UIButton in it.
IN interface builder the classname for the button is set to "CustomButton"
How would you write an init me...
I know that iTunes has a search and lookup API but I still haven't figured out how to return all iPhone/iTouch/iPad apps for a given developer ID. Anyone know how and can provide an example?
...
Hi, What is the difference between a private method and a private interface?
For example, I know that if you define a method in an implementation and its interface does not mention it, it is considered a private method. I have also seen things such as:
@interface Collector()
@property (readonly) NSMutableDictionary *count;
@end
Insid...
I'm working with an API that returns a server's IP address as an unsigned int value. What's the simplest way to generate an NSString from this that displays the IP address in the format "255.255.255.255"?
...
I'm making an iPhone game in Flash and i added a little splash screen where the game name fades in from black then fades out to the menu screen. The whole animation is in its own movieclip, just 2 transitions where the alpha changes. When built to a SWF file this plays perfectly, but on the iPhone it doesn't.
Even more strange; the iPho...
How to parse xml without freezing GUI in iphone SDK ?
during parsing user can interact with gui components. But as i have seen most of the times GUI become freeze when xml parsing performed.
...
Hi everyone,
Here is my problem :
I want to assign an Event on an UIButton. I use this method :
- (void)addTarget:(id)target
action:(SEL)action
forControlEvents:(UIControlEvents)controlEvents
like this :
[newsButton addTarget:self
action:@selector(myEvent2)
forControlEvents:UIControlEventTouchUpInside];
newsButton is my UIButton...
hello all,
i have a button when i try to write myButton. then if I click esc button there is not options or any intelligent result.
thanks
...
I have a label which pops up displaying points in my application. I am using the following code to make the label get larger in scale, then smaller. I would also like to animate the color changing from purple to green. Can someone point me to a resource in achieving this?
mLabel.textColor = [UIColor purpleColor];
[UIView beginAnimatio...
Hello, I have a table that displays cell using UITableViewCellStyleSubtitle:
=============================================================
Title:This is the title of something Date:Custom label
Subtitle:breif description
=============================================================
My Problem is that sometimes the titles are lo...
When a user clicks a link in the present UIWebView a new view is pushed onto the navigationController's stack that contains a UIWebView. I'd like to pass the URL that was touched to this new UIWebView. How do I go about doing this?
...
I have a UITableView that uses JSON to to get new data from the AppDelegate. It saves the data and then is pulled into this tableview class from the AppDelegate.data3, After I add a record to the mysql database I launch the Delegate method that refreshes the data.
However,[self.tableview reLoadData]; breaks the drill down ability of the...
I need to add this to my dismiss button :-
[self dismissModalViewControllerAnimated:YES];
[self release];
else
[self.view removeFromSuperview];
I thought
if( self.navigationController.modalViewController ) {
would work be it nevers true
...
Hi there. I'm using iOS SDK to do Facebook Connect in an iPhone application, I can successfully login in and get the accessToken from the Facebook instance but I'm not able to use it from a rails/facebooker.
I do the call on the iPhone app:
NSString * url = [NSString stringWithFormat:@"http://localhost:3000/fb_login?access_token=%@",[s...
I'll be ready to start beta testing my iPhone app in the next month, and I guess I should be expecting it to crash once or twice. It would be nice to get the crash report -- and whatever supporting info I can -- back to the mothership. Ideally, this would require little to no work on the part of the beta testers.
There are tools and met...
hello this is my code is it wrong
- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
NSLog(@"Inside touchesBegan");
UITouch *touch = [[event touchesForView:self.view] anyObject];
CGPoint location = [touch locationInView:touch.view];
NSLog(@"pointx: %f pointy:%f", location.x, location.y);
NSLog(@"a...