When drawing an NSString with -drawAtPoint:, what is the starting point of the string?
Relative to the text... where is the point? Top left of the rectangle where the text is? ...
Relative to the text... where is the point? Top left of the rectangle where the text is? ...
Hey folks, i have this MainViewController, which is a controller for my table view. Whenever I press a row on the table view i go to my employeeViewController. Which is a normal view with a Text View inside of it. So my hierarchy looks like this: -Window --Navigation Controller ---Navigation Bar ---Main View Controller ----Table V...
Hey Guys, So I have a simple split view that functions great except when the view loads. For some reason if it loads in landscape mode, it only loads on ~half the screen (it seems like it is the width of the portrait mode). Does anyone know what may be causing this behavior? I am using the default split view controller provided by th...
Hello all (but mostly Dave), I am playing around with Dave DeLong's excellent CHCSVParser for Objective-C with an extremely long .CSV file and am running into some trouble using it. I would use the arrayWithContentsOfCSVFile method, but I'm running the code on an iPhone and parsing the whole file into memory would take more memory than...
Hi guys, When I add an icon to my iPhome application Apple automaticly adds some styling to this icon, how can I get rid of it? Actually my icon is quite simple, I have a letter on a color background, and this styling applies to both letter and background. I would this styling won't apply to letter but only to background, I can guess ...
I'm developing an iPhone app. I'm using a UITable subclassing UITableViewController. I added a NavigationBar to the view: UINavigationBar *navBar = [[UINavigationBar alloc] initWithFrame: CGRectMake(0.0f, 0.0f, 320.0f, 48.0f)];[self.tableView addSubview:navBar];, now the problem is that the navigation bar scroll down with the table and ...
Hi, I try to implement a push notification service in my iPhone app... Do you have any valuable bookmarks on this subject ? (like tutorials or libs for client or server side) Here is what i found... Server side libs : http://code.google.com/p/apns-php/ (PHP) http://code.google.com/p/easyapns/ (PHP) http://github.com/simonwhitaker/...
I put an NSlog in my dealloc method of my view controller. It does not get consistently called. I do notice that ViewWillDisappear does get called always. Would it be ok to move all my tidy upcode here? Setting stuff to Nil and release calls. Anybody got some advice on why dealloc is not getting called? I know it says in docs it may no...
If I was adding data from an array to the UITableView datasource array I'd use this, in viewDidLoad. NSMutableArray *array = [[NSArray alloc] initWithObjects:@"Head First Design Patterns", @"Head First HTML & CSS", @"Head First iPhone", nil]; self.transactionsArray = array; [array release]; And this in cellForRowAtIndexPath NSInteger...
Hi There, I'm new to web pages etc and have a problem with pictures and words in buttons on safari on the Mac and Iphone. The buttons display correctly on the Mac but on the iPhone/Ipad they are squashed showing the top of the graphics only. The code is generated by PHP and I can't find a way to correct it. I'm using button tags and onc...
Hi, In my application, when the user add an object, can also add a link for this object and then the link can be opened in a webView. I tried to save a link without http:// prefix, then open it in the webView but that can't open it! Before webView starts loading, is there a method to check if the URL saved has got http:// prefix? And if ...
So this declaration works fine for iOS 4 and 4.1, but not for older versions. Any advice? @media screen and (device-width:320px) and (orientation:portrait) { /* iPhone Portrait Styles Here*/ } @media screen and (device-width:320px) and (orientation:landscape) { /* iPhone Landscape Styles Here*/ } ...
Is it possible to translate a webpage within a webuiview using google translate? I am aware that you can use their rest services to translate some text, but I have not found any way to translate a web page. You can do some trick with the url but that adds along with the translate page a banner at the top that I don't need. ...
I'm following the second tip from here. In this tip two UIBarButtonItems are put together in a UIToolbar. Finally, the UIToolbar is added to the UINavigationBar. Now to my problems: 1) A white line is on top of the UIToolbar. If I increase the size of the UIToolbar, the gradient is wrong. I'm using the following size for the UIToolbar: ...
I am testing a nav based app on an older iTouch that has 3.1.3 loaded. The problem is that the nav buttons size (which use custom images) are too large for the nav bar. This is not the case on 4.0. Any ideas? Below is the code I am using to create them. //add done bar button - goes to email UIButton *btnDone = [UIButton buttonWith...
Hello! I'm trying to create an endless animation of layer rotating slightly to the left, then slightly to the right and back. So I'm animating 10 degress to the left, then 20 to the right, then 10 to the left again. It works great on simulator, but on device the layer "shivers". It appears like it returns to its previous state every ti...
Any clue on how to set padding on left/right/top/bottom of a UITextView? ...
Hi In my app I have next and previous week buttons, but also a UIDatePicker. So lets say I press the net week button, how can I adjust the day in the UIDatePicker to increase by 7 days? And visa versa for back 7 days. Thanks! ...
Hi, I can't find a decent answer to explain me the difference between these 2 functions. when does every one gets called, and how does one different then the other ? for example , can't I just layout my views inside drawrect ? Thanks ...
I was wondering if there was a way for a website to send an alert/notification to a cell phone (smart phone, android, iphone... stuff like that) where the notification will ask the user a question and they have to answer the question and the response is sent back to the website and their answer is logged in the database. I would also li...