I have an interesting problem.
I am loading a UITableView asynchronously. I am trying to get the count:
prefs = [NSUserDefaults standardUserDefaults];
NSInteger dmCount = [prefs integerForKey:@"dmCount"];
NSLog(@"items count %d", [self.items count]);
if (abs([self.items count] - dmCount) > 0) {
[prefs setInteger:abs([self.items...
Hi,
I am creating UIProgressView from nib, i want to increase its height but it is fixed to 9. For iPad i need to increase its height How it can be done.
Thanks in advance.
...
I'm trying to get my head around using QuartzCore to render semi-complex text/gradient/image UITableViewCell composites. Thankfully, Opacity will let me visually build the view and then spit out source code to drop in to cocoa touch. Trouble is, Opacity assumes the code is running on iOS 4, which is a problem if you want to draw Quartz...
Can someone tell me why my application crashes here ?
and why it does not crash when i replace the YES objects with NSString values ?
all i want to do is to store boolean data into array and to modify these data later,
can someone please tell me how to do this ?
- (void)viewDidLoad {
[super viewDidLoad];
NSMutableArray* arr = ...
Ok my problem:
I have function to create a Label:
- (void)crateBall:(NSInteger *)nummer {
UILabel *BallNummer = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 200, 100)];
BallNummer.text = [NSString stringWithFormat:@"%i", nummer];
[self.view addSubview:BallNummer];
}
Now i wanna access the label in a other function to cha...
Hi
I need to convert integers into two decimal float numbers. So if i have an integer 3 i want it to be float 03. But if i have an two digit integer 33, i want it to be float 33.
...
I've been following tutorials and noticed that we always edit ViewController.xib but never touch MainWindow.Xib. I was wondering why that is. Would there ever be any reason to edit this file?
...
hi ,
I am developing one demo app.
In first view 'Login' button is linked to 'signInAction()' which is as follows. My superview controller is 'LoginController' and subview controller is 'TweetyViewController'..
- (IBAction) signInAction:(id)sender {
TweetyViewController *tweetyController = [[TweetyViewController alloc] initWithN...
I would just like to clarify that by 'design', I mean software design, not UI design.
I have an application similar to the native settings app. The problem I have with it is it doesn't follow the same clear-cut MVC style. Other apps tend to focus around displaying one kind of thing. In the case of a periodic table app for example, it's ...
Hi all,
I have a question regarding sounds in my app. I need the user to be able to mute all sounds coming from my game, for example if they just want to listen to the ipod while playing. There is a similar question here http://stackoverflow.com/questions/1147555/disable-all-program-sounds but there doesnt seem to be an answer. At the ...
Should be simple to find out right? Where in the Apple docs does it list any default values for various UI components?
I've tried calling the protocol's method:
CGFloat width = [self pickerView:pickerView widthForComponent:0];
...but no luck. How do i find out this default value?
...
I need to send data from my iPhone application to my webserver, and back. To do this securely, I'm using an encryption algorithm. It requires a key that must be known by both the server and the user so that decryption can take place. I was thinking about just using a simple static string in my app and on the server as the key, but the...
I want the keyboard to go away as soon as I hit "submit" in my iphone app, and not wait until the function completes. The function takes a long time because I'm doing a synchronous HTTP request.
How come the view doesn't update until the whole function completes? I'm working in the simulator in xcode.
-(IBAction)submit:(id)sender{
...
I have a tabbar application that has one screen that displays statistics based on the data presented in the tableviews of over tab screens. I would like to refresh this view once the stats view becomes selected again. I have implemented the tabbarcontrollerdelegate protocol to take an action when the viewcontroller.tabbaritem.title ise...
Every time I open a .xib file the View window is partly covered by the Library panel, so I have to drag it to a different location. Is there a way to setup the locations of where windows appear when IB starts?
...
I want to remove a badge as soon as the user clicks another tab. I am trying to do:
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
UITabBarItem *tbi = (UITabBarItem *)self.tabController.selectedViewController.tabBarItem;
tbi.badgeValue = nil;
}
But it doesn't work.
...
Hello all,
I would like to use Xcode to know which language the iPhone using, if it is in English language, I will display an English button. If it is in French language, I will display a French button.
Do you have any suggestion?
...
I have three Objective-C classes:
@interface ClassA : NSObject{
IBOutlet id<ClassAProtocol>delegate
//other instance variables
}
//methods
@end
@interface ClassB : ClassA{
//instance variables
}
//methods
@end
@interface ClassC : ClassA{
//instance variables
}
//methods
@end
My objective is so that when an ins...
Hello:
I have a "world view," so to speak, that consists of a large, zoomable area on a UIScrollView. I want several buttons to retain their world location when I pinch to zoom, much like pins in Google Maps do. The code I have been trying (I have been coding for hours, but I think it sounds right...although I may be just burned out) ...
For the life of me I can't get something that seems like it should be simple to work. I have a navigation controller and am trying to push an MKMapView onto the stack that loads the user's current location. The problem is that the user's location seems to be only available after the MKMapView is pushed onto the navigation controller, thu...