Cocoa View does not apply changed font for label
Hi, I'm trying to change the font of a lable in a UIView for my iPhone App. The change of the 'Font' in the Attribute Inspector does not have any effect on the font. Any idea? Thanks, Stefan ...
Hi, I'm trying to change the font of a lable in a UIView for my iPhone App. The change of the 'Font' in the Attribute Inspector does not have any effect on the font. Any idea? Thanks, Stefan ...
I'm using Xcode 3.2.4. Has anyone ever experienced this? Here's the console message that I had gathered: 10/22/10 10:53:58 PM Xcode[70765] _NotificationSocketReadCallback (thread 0x1170b0000): Unexpected connection closure... 10/22/10 10:53:58 PM Xcode[70765] Got faceplant notification 10/22/10 10:53:58 PM Xcode[70...
Here's what I want to do: NSRange r = NSMakeRange(0,5); id a = [NSMutableArray a]; [a addObject: r]; // but NSRange is not a NSObject * With a boolean, I'd use code like this: [a addObject: [NSNumber numberWithBool: YES]]; or with an integer: [a addObject: [NSNumber numberWithInteger: 3]]; So what's the equivalent with a NSRange...
self.player = [[AVPlayer playerWithURL:[NSURL URLWithString:@"http://myurl.com/track.mp3"]] retain]; I am trying make a UIProgressView for the above track. How do I obtain the file size and current file size from that URL? Please help, thanks! ...
I have an array of objects (Users) each user has an nsset named "devices" Is it possible to filter so the array returns all users who have a device with a specific name. NSPredicate *predicate = [NSPredicate predicateWithFormat:@"devices.category==%@", @"mobile"]; myArray = [allUsersArray filteredArrayUsingPredicate:predicate]; ...
From the Getting Started with Game Center doc A player might have the same Game Center enabled game loaded on multiple devices. If your app has reported progress on an achievement from one device, note that the same achievement progress data will be provided by Game Center on other devices where the user plays your game. However, other ...
Hello, I need to change only xoffset of my textfield on a particular event . I am writing the following line . fileNametext.frame.origin.x = 300.0; But I am getting the following error . error: lvalue required as left operand of assignment Can somebody please help me ? Thanks in advance . ...
Hi, I'm making a mobile interface for my web app, and I'm trying to use anchor links to make navigation easier. My code is similar to this: <a href="#section2">Jump to section 2</a> ... lots of stuff here ... <h2 id="section2">Section 2</h2> The problem is that the link works only once. So if a user, using his iPhone, taps that link ...
I'm using Titanium's appcelerator. I've seen the kitchensink example for tableView performance, but that's just for un-customized rows, at around 4ms a row on my 1G iPhone. The performance for 1.4.0 and 1.4.1.1 shoots up considerably when you have custom rows, like one with a picture and a label, to about 20ms per row at the very least. ...
Hii friends, i m new to iphone development and i have gone through some iphone applications with awesome UI design. i guess those UIElements are not standard Iphone controls,if so How to create Custom Controls or any different nice look for controls? Thanks to all.. ...
So this is the question. Why does it do it? Even when a do something like this NSLog(@"view's retainCount %d", [viewController.view retainCount]); it increments the retain count. ...
I'm implementing asynchronous image loading in UITableView, If I scroll rows fast my app crashes due to message sent to zombie... What is wrong am I doing here? //loading image from URL -(void)loadImageFromURL:(NSURL*)url { if (connection!=nil) { [connection release]; } //data is NSMutableData if (data!=nil) { [data release]...
After I connect my iPad to an external screen, my window gets distorted all weirdly. I'm guessing this is because the screen's resolution is different than the iPad's and my app is not setup to autoresize it's views very well. Is there anyway to have the rendered output on the external screen be a a scaled visual image of the original i...
I am using a UIWebview to display local .html. I want to disable longpress in this view. How would I go about executing this? Right now this: http://yfrog.com/498jxej shows up and I want to avoid that. Here is what fixed it: <style media="screen" type="text/css"> body { -webkit-touch-callout: none; } </style> ...
I'm working on trying to understand and modify the WiTap sample iPhone application (which works fine). In my modification of the code, I'm able to get two devices to locate each other and resolve NSNetService objects, on which I then call getInputStream:outputStream to create an NSInputStream and an NSOutputStream object. The problem i...
I need an iphone app to post data from time to time to a webservice. Can the iphone post the data in a gzip format? if yes, can you point me in the right direction on how to accomplish this Thanks ...
I was expecting this to work, only thinking it would fail if I had locally declared another variable called "tableView" NSLog(@"X: %@", [tableView delegate]); // Fails: tableView undeclared . NSLog(@"X: %@", [[self tableView] delegate]); // Works: Is this because you need self to refer to items on the actual object? NB: this code ...
On the iPhone, we can simply use (void) viewDidAppear:(BOOL)animated; to perform actions when a view becomes the focus. In some events, we have a modal view with another modal view on top of it and, on the iPhone, closing the topmost modal view will fire the viewDidAppear for the lower modal view. This is not the case for the iPad, as t...
Hi, I have a navigation bar based application, and at one specific point in the app I have a button on the nav bar that should present a new view using a flip transition (essentially taking a user from a tableview to a map view). I'm currently using DetailLocationView *detailLocationView = [DetailLocationView alloc] init]; detailLoca...
I have a view and a button. When the button is pushed, I present a modal view controller that has a uiwebview, and a navigation bar at the top. The hardcoded uiwebview shows a login prompt. Once the user goes in and enters the correct login credentials and hits GO on the keyboard, I not only need it to authenticate me into the server, bu...