Hi there
I have this in my app delegate applicationDidFinishLaunching method:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
if([defaults objectForKey:@"AcceptTC"] == nil){
NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AcceptTC"];
[defaults registerDefaults:appDefaults];
}
an...
Hey guys,
Something very strange is happening to me. I've been double and triple checking myself.
I'm using a UITabBarController, and initializing it with 4 different view controllers.
However, for some reason, when the application starts, only the first tab bar image is displayed. It's only when I touch the blank part of the tab bar - ...
I am using AsyncSocket class for a chat application. But i want to use the AsyncSocket instance creating in the Login page for the entire project. That means i want to reuse the instance of AsyncSocket which created in the Login page for the chatViewControl Class.
Can anyone help me to find a solution for this?
...
I'm using a basic Three20 TTTableViewController subclass which employs its own datasource and model.
The problem is that I cannot seem to use the scrollsToTop property of the table. This is a standard property for the table, inherited from UIScrollView and very commonly used.
I have tried all of the following, in numerous different lo...
Hi Guys,
I am stuck in a strange situation , i am getting data from the website using XML files and i am filling an Array (NSMutableArray Type) that i later use to display the data on Table View. The problem is that functions related to UITableView are called earlier and at that time the Array is not filled, this cause the program to cr...
Hi,
I need a corner like in the Maps app.
I tried this code but nothing happens:
- (IBAction) performCurl {
// Curl the image up or down
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:(not...
I've been using Xcode for a while and had a brief look at the interface builder when I first started but then went straight on to coding everything.
So far it's working OK but I just wondered if I'm missing something by not using the IB.
Is there any advantage to using the IB at all? I've even coded subviews and stuff without using th...
In my subclass of NSObject I would like to call something like
[[self navController] presentModalViewController:myView animated:YES];
But none of my tries were successful. How can I call a modal view if I'm not in a subclass of UIViewController?
Solution:
#import "myProjectNameAppDelegate.h"
// ...
MyViewController *myView = [[M...
The documentation doesn't talk about it. But I guess something around 24 FPS should be fine?
...
Is it possible to change a voice of a caller in iphone sdk ?
for example:
When person(A) calls person(B), voice of person(A) changed (like small baby voice, old man voice etc ..)
...
Im trying to send a float from one viewcontroller to another.
Ok Ive tried using NSUserDefaults to go about this. First I tested it with a string and it worked, but now I'm struggling to do the same with my float. Any help would be appreciated! :) Heres my code
In my firstviewcontroller.h file i have
IBOutlet UITextField *nameField;...
Hi,
I know the meaning of this error, but I'm really struggling with it, and I need someone's help :
2010-09-21 15:03:11.562 Stocks[5605:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSObject 0x499fb20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key actionTe...
Hi
i have images in my UIScrollview which is added in View.
plz go through my code-
@interface ScrollViewController : UIScrollView <UIScrollViewDelegate>{
UIImageView *productImage;
UILabel *productName;
NSArray *productArray;
}
@property(nonatomic,retain) UIImageView *productImage;
@property(nonatomic,retain) UILabel *pr...
Hi,
In my application tab bar controller is used to show more than one views.I want to hide the Tab bar at the time of pressing first tab bar item.
But,I don't know how to do this...Plz help me to do this...
Thank You,
Renya
...
When the user makes a zoom gesture, I need the image to animate to fullscreen, without bouncing around or having to gesture more than once. Movies played using MPMoviePlayerController have exactly this behaviour.
I note some people have implemented something similar using scrollview/webview, but that doesn't give the same effect, and of...
Hello all,
I'm already pretty sure that it can't be done with any public API, but I still want to ask:
Is there any way to change the line height in a UITextView?
Would be enough to do it statically, no need to change it at runtime. The problem is that the default line height is just WAY too small. Text will look extremely compressed ...
Hi!
I was wondering how I can open Google Maps from my iphone app so that Google Maps shows the route when you arrive at the web page?
Today I use code that only shows the coordinate.
NSString *latlong = [NSString stringWithString: @"59.33267,18.07361"];
NSURL *url = [[[NSURL alloc] initWithString:[NSString stringWithF...
I am working on an iphone app that downloads a video from a web server and then plays this video.
my problem is that sometimes the server replies to me with an empty file not a valid video.
how can i check that this is a valid video file before playing?
player = [[MPMoviePlayerController alloc] initWithContentURL:url];
[[NSNotif...
What are your experiences/thoughts ?
Are there currently any approaches that prevent automated cracks ? I know that any app
is crackable if someone is persistent. However, i would like to make it as hard as possible for the crackers.
What methods are currently used for integrity checking and crack prevention ?
...
Hello everyone
I trying to make a swipe mechanism for a view that might have buttons on it. Without a button its a piece of cake.
However if your finger starts on the button, you can trigger an event (drag outside) but that does not tell me the direction.
So how can I detect the direction of a swipe / drag where your fingers starts...