I am making an Cocoa app with custom interfaces. So far I have implemented one version of the app using CALayer doing the rendering, which has been great given the hierarchical structure of CALayers, and its [hitTest:] function for handling mouse events. In this early version, the model of the app are my custom classes.
However, as the ...
Hi,
I just created an animation to zoom in or zoom out a UIScrollView, but my problem is that the zoomScale is not updating. Like for example, I zoom out my UIView inside of my UIScrollView using the animation I created, but when I zoom in using expand gesture the UIView will automatically change to its big size or zoom in size. I saw t...
I want to be able to write the contents of NSLog to a file I specify, or I need a function that writes a log to a file, for example:
WriteLog(@"some activity by the user");
WriteLog(@"some more activity by the user");
but I want the output to look like this:
12-25-2009 1:30:00PM some activity by the user
12-25-2009 1:35:00PM some mor...
What is the most efficient/recommended way of comparing two NSDates? I would like to be able to see if both dates are on the same day, irrespective of the time and have started writing some code that uses the timeIntervalSinceDate: method within the NSDate class and gets the integer of this value divided by the number of seconds in a da...
hello guys,
my app crashes with EXC BAD ACCESS
i've added NSZombieEnabled = YES to the arguments of my executable.
it gives me that log:
[CFArray release]: message sent to deallocated instance 0x3c26340
and crashes that happens only on the first time the app is installed on the simulator.. i press Build and Go again the app works as i...
Hello all,
I have a view (splash screen) which displays for two minutes:
- (void)applicationDidFinishLaunching:(UIApplication *)application
{
[viewController showSplash];
}
- (void)showSplash // Show splash screen
{
UIViewController *modalViewController = [[UIViewController alloc] init];
modalViewController.view = modelView;
[se...
Hello all !
I am having difficulty with subj.
I have NSString text, contains "SLOVO", and i need that NSMutableString* currentRequest contain "%t%e%x%t%".
I trying in cycle:
[currentRequest appendFormat:@"%c%%", [text characterAtIndex:i]];
It's working fine, BUT if text contain for example "Rüdiger", i mean non latin symbols, t...
Hi,
The Three20 is great library. It's making the work with tables very easy. But one gap that I noticed - is deletion of rows, with animation. I spent many hours trying to do this, and this is what I'm doing:
// get current index patch
UITableView* table = [super tableView];
NSIndexPath *indexPath = [table indexPathForSelectedRow];
...
Hi,
How to insert items into NSArray object in C# (Monotouch)? I don't find appropriate method to do so? In Objective-C side, there is a constructor called "initWithObjects" but I don't find this on C# side.
pom
...
I'm using a table view to display a list. Only one cell will have UITableViewCellStyleValue1. The problem is that when scrolling up/down, the detailed text is not displaying well. here's the code.
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexP...
Hi,
I have a subview in a UIScrollView and it seems the view is distorted when every time I zoom out or in the content view. As described here by Brad Larson that I must set some transform values and redraw the content view. Now my problem is how can I redraw my content view. The content view of the UIScrollView is a UIView with UIButto...
When user hits the Cancel button in the FBStreamDialog, which inherits from FBDialog, I am having trouble differentiating it from when user clicks on the Publish button. Seems that the callback FBDialog dismissWithSuccess is always passed with the status:NO regardless of which button is clicked. What am I doing wrong? Thanks!
Here's ...
I have a really long UIWebView, and I need to add a way for the user to tap the UINavigationBar to scroll to top (something like the Facebook app, where it's little glow when you tap).
How can I do this?
...
I have the following set up in a navigation controller.
The root is a list of categories (banks, hotels etc) and each category has a child view below it containing a table view of items (Bank A, Bank B etc). When i select 'Banks' i see my banks (list coming from from web service), but then i go up one level to my root, and select 'Hotel...
I'm writing a program with a UITableView with and add button in the Navigation Bar which leads to an edit page. When you click on an item in the table, a view (rView) is pushed with information pertaining to that item. This view has an edit button that also leads to the edit page. Is there a way that I could put an if statement for the ...
Is the little blue mail dot the iPhone mail program uses to signify new mail, on each tableview cell, available in the SDK? Or, it is available for download some where on the Internet?
...
I tried to find an explanation for this question, but couldn't.
I am new to iPhone development and I was wondering why the iPhone cannot allow/run more than one app at a time?
I am pretty sure this is a design feature rather than a lack of functionality.
Could someone please explain to me in technical/non-technical words why you can't...
I want to add an annotation to a MapView with disclosure button on it and I can't figure it out.
I have created a PlaceMark class that conforms to the MKAnnotation protocol and then create the MapView and add the PlaceMark:
// Add annotation information
PlaceMark *venuePlacemark = [[PlaceMark alloc] initWithCoordinate:location];
venueP...
I have the following subview chain:
UIViewController.view -+
|-> UIView (subclass) -+
| +-> UIToolbar
|
+------------------------> UIWebView
In the subclass, I override its -touchesEnded:forEvent: method in order to hide a...
In my app, when a user touches a table cell, the cell is disabled and the cell's reorder control disappears. If they touch it again, the cell is enabled and the reorder control reappears. The way I'm currently implementing this is by calling reloadRowsAtIndexPaths:withRowAnimation:, but this is sloooowww. If I just change the showsReorde...