Hi,
Can a Objective c interface have more than one implementation? Example I could have a interface but 2 implementations one where i use an arrays or another where I use a stack..etc to implement it.
If so how do you call it / syntax?
Thanks
...
It seems that the UIScrollView stops sending touch events to the delegates on the scrollViewDidScroll event. I'm trying to get the y location and can't seem to find access to the events. I would like to update the view based on the position while it's scrolling.
The best lead I've had has been this ( http://github.com/andreyvit/Scrolli...
I have a protocol in objective-c, something like this:
@protocol Handler
+(NSString*) getValue;
@end
So now say I have an instance that inherits this protocol and I want to call this method:
[handlerInstance getValue];
This give a warning because the getValue method is not an instance method. How can I properly call this method fro...
when for . . . in . . . is available?
Specifically, when we can write:
NSArray *array;
// array allocated and initialized here.
for (id obj in array) {
// do something to the object here
}
Why would we ever use an NSEnumerator?
...
I've just finished a relatively large project for the Android, and it's left a bitter taste in my mouth with the knowledge that it will never run on one of the most ubiquitous handsets this side of the solar system (the one by that fruity little club).
So, for my next project, I want to write it in a way that makes most of the component...
how can i convert NSURLRequest to NSString ?
...
Is there a way to keep the cursor blinking when UITextView is not first responder?
Or is there any other way to put another view on top of keyboard while it's first responder?
...
http://clang.llvm.org/docs/BlockLanguageSpec.txt
Looks really cool.
However,
I don't understand it.
I don't see examples it.
I don't see examples of ideas hard to express in C++ as is, but trivial to express in blocks.
Can anyone enlighten me on this?
Thanks!
...
I'm working on a tab bar application and one of the tabs has a UISearchDisplayController hooked up to a UISearchBar. It's all connected up in the NIB and is working. When I tap the search bar, the Scope and Cancel buttons fly in etc, and the search delegate updates the results table correctly.
However, I'm trying to implement the same c...
I've got several different classes in my code utilising identical methods -- resulting in a lot of duplicated lines -- and I recently found out about adding Categories which promises an effective solution to the problem. To give one of the smaller examples, my previous methods were (typically) called in the traditional way like this:
if...
I am using the NSURLRequest class in my iPhone app, and the method that calls it returns an NSString which is great for when the connection goes through ok, but the issue is I need to convert the NSError into an NSString so I can either return it back or run some if() statements on it.
Any ideas? :)
...
Hi!
I've made an custom UILabel class in which i draw a red line at the bottom of the frame.
The red line is showing but i cant get the text to show.
#import <UIKit/UIKit.h>
@interface LetterLabel : UILabel {
}
@end
#import "LetterLabel.h"
@implementation LetterLabel
- (id)initWithFrame:(CGRect)frame {
if (self = [sup...
From class picViewController i am calling function imageCliked on scrollViewController
in order to fire function loadPage but it does work. Compiler error:
"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[scrollViewController loadpage:]: unrecognized selector sent to class 0x17198'"
Anybody can ...
I'm trying to get my app to see and respond to event notices like the following:
Sun Mar 7 00:29:31 unknown UIKitApplication:com.yourcompany.blah[0xac61][594] <Notice>: Connected to 10.0.1.8:55937!
Sun Mar 7 00:29:31 unknown UIKitApplication:com.yourcompany.blah[0xac61][594] <Notice>: Connection request from 10.0.1.8:55938...
Sun Mar ...
My app is a tab bar application, which one of the tabs is a TableViewController instead of a viewController which works fine (the table displays great) but where and how do I add UINavigationController to it? :-)
...
I have a UITableView which displays about 5 cells at a time, yet in my table there might be cases where there are only 2 cells with content as seen on this picture:
The white cells below do not look nice, how can I change the background color of these cells to black too? UITableView does not have a backgroundColor property.
Thanks!
...
I want to reload the data within a table view that is contained on the root view of my application.
The root view of my application (called RootViewController) is a UIViewController that has a corresponding NIB file. I added a UITableView component to the RootViewController.xib via IB. In the header file RootViewController.h I ensure Ro...
I'm writing an application based off of the Three20 framework, and I seem to be having some trouble...
I'm using the TTTableViewController to load data from an endpoint and display a list of the titles, which can be clicked to present a new UIViewController which contains a UIWebView that shows the URL (gotten from the JSON data). Howev...
Hi,
I am using a c++ library using callback to inform about the progress of an operation.
Everything is working fine except this:
I need to have a function in my controller to be use as a c++ callback function.
I've tried a lot of things but none of them are working.
Do you know how we can manage this kind of thing?
Thanks :)
...
Hello,
i would like to fetch a part of a string in objective C:
a sampletext:
This is the story of a startnew mountainend. There were many bluestart green houses end.........
the function should return a array of strings which are all in between the "start" and the "end".
How can i write this in objective C?
Andreas
...