I've overridden drawLayer:inContext: on UINavigationBar in a category so that I can put a custom image up there. I hate it, but my client was adamant.
As a result, I've had to fall back to some pretty ugly hacks to get things up there. I had to put a new method in that category to put a title on the nav bar header, and I have to call it...
I've looked around everywhere to no avail. I'm doing some image loading in a thread and since UIKit is not thread safe I'm going to have to store the images as CGImageRefs but I can't figure out how to do this. I haven't played with any of the Quartz stuff before so it's confusing me. Basically I just need to load a JPG from the disk int...
Hey all,
I am trying to add custom labels to my cell in UITableView. When I try to do this the display is messed up and I am unable to figure out what exactly is going on. Please find the image below and I will post the method I wrote..
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPa...
I have 1 main UIViewController that contains a UITabBarController. The tab bar controller has 4 UIViewControllers (each managed by UINavigationControllers). Succinctly, it looks like this:
MainViewController
|
|--- FirstUIViewController
|
|--- SecondUIViewController
|
|--- ThirdUIViewController
|
|--- FourthUIVi...
Hi Everyone,
I am really struck in a problem. I have an iphone application where i need to convert my data in pdf and excel format using google docs. By spending some time on R&D i came to know that i will have to send my data in HTML format. Other than that i came across nothing. Please provide me clue how to implement it. Some sample ...
Hi all,
I have a some classes which I need to serialize in two different ways: first- "basic" fields, and the second- some other fields.
e.g. a User class which I sometimes need to serialize just the "first name" and "last name" fields, and sometimes I need to serialize the "id" and "email"
fields as well.
The best way I found to do thi...
I have an UITableView showing custom view cells that I've designed in interface builder. It has quite many buttons and labels and a gradient background, which makes the scrolling performance sloppy, it "lags" every time a new cell loads. I've read the guide from the guy who created Tweetie about fast scrolling, and it says it's best to d...
Hi, I try to change the with of a cell in a tableview, I don't do a custom cell, I just subclass uitableviewcell.
This is the class
@implementation customCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if (self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:r...
I have a multi-component UIPickerView in my application. Two components are plain and completely served by the pickerView:titleForRow:forComponent: method. My third component however requires a custom view via the pickerView:viewForRow:forComponent:reusingView: method. I don't see any way in the documentation to have a "partially...
Hi,
I'm writing a class that implements a piano keyboard. Right now it's just a UIView and each key is a UIButton. I'd like the user to be able to drag their finger and hit several keys, but right now it only registers touch down. I've added UIControlEventTouchDragEnter as a way to trigger the key event but it only works if you hit a ke...
I've been doing research because my pdf viewer app keeps crashing around page 4/5 because of a memory leek that happens every time you turn a page...
It turns out that apple have a bug.
see here: https://devforums.apple.com/message/9077#9077
from what I understand you have to release & retain the pdf document every time you change pag...
Hi all
I have a table view and when a user selects a cell I want to log a unique id. I thought I could use the index but the numbers are not sequential (I.e. 1,4,5,9,etc). Is there a way of defining a custom index or ID for a cell?
So I have the following cells in a table:
dog
cat
fish
the above cells have ids as below
2 dog
4 cat
8...
The one that asks you to select a wireless network?
It looks like a UIAlertView and UIPickerView combined? How do you use it
...
I have a view made in Interface Builder and I want to show it every time I need time to get some data from a server. I need to add it on top of everything, I mean, modals can be presenting when this view is visible, and this view has to be always on top.
Any help?
Thanks in Advance
...
I've seen this question asked around before, and found an answer for how to do this in a simple view. But... when I go to a subsequent view pushed onto the view stack, manually setting the titleView doesn't work out. The titleView view gets pushed off to the right while the back button and its text take over the left half of the UI.
Is ...
I have a camera application that uses my custom overlay on the UIImagePickerController object.
I am calling the takePicture method to take a picture when the user presses a button on my overlay view. Something like:
[imagePicker takePicture];
[self showProcessingIndicator];
The processing indicator is the usual spinning wheel that s...
Hi Guys,
So I have poured over the ASI documentation but can't seem to find anywhere that says whether or not it is possible to capture the cookies from a post. Is there any method that rips out the session cookies into a dictionary or something from a request? Thanks!
...
Hi, I have the following code in my app. Its an iPad app, with five tables in a single view named monTable, tueTable etc. These tables represent monday to friday.
In this code I get the date and set each table title to the date monday to friday (this week). Then if I press a button nextWeek becomes TRUE and I reload table data. This the...
I am currently trying to connect to a server with a self signed certificate. I am using NSURLConnection to connect to the server. How can I make sure that I only trust the right server and cancel all other connections? I am using the following code
- (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(...
I have a UITableView, where I extend/shrink the cells with the following code.
I save the last 2 indexPaths to perform a reloadRowsAtIndexPaths: on it.
Now I added a UISearchBar to the header for section 0. If I tab the searchBar, a KeyBoard is displayed on top of the UITableView — so far so good.
But I want the user to be able to touc...