Is it acceptable for a instance method of a class to release itself?
ie to have a method that calls:
[self release]
Assume that my code is not going to access self after calling [self release]
...
I need help in using checkbox cell. I currently added the object to tableview. It looks ok until i tried building and running the program where I cannot check the checkbox. I am currently using a tableview which displays items runtime with a checkbox for each item so i can have multiple selections.
I am new to xcode and I have been stuc...
Hi all,
Is it possible to send a file using bluetooth programatically ?
Any suggestions or any alternative methods ??
Thanks
...
Is there a way to change the application language during runtime?
So, after the change NSLocalizedString immediately returns the string for the new language.
What I'm doing now is changing the language using the code below:
- (void)onChangeLanguage: (id)sender {
NSArray *lang = [NSArray arrayWithObjects:((InfoWhatever *)sender).langu...
Is there a way to add custom views above and below a UITableView?
I'd like to have a custom header and a custom back button in the footer. What would be the best to do this?
I've started by subclassing UITableViewController and tried resizing the UITableView. In vain.
Tried adding a new main view to UITableViewController and adding t...
I'm trying to setup my Xcode project to be instrumented with gcov so I can determine the code coverage of my unit tests. All of the documentation I find online talks about settings that I don't find in Xcode 3.1, though. An example:
To work with Coverstory, first you need to set up your target to work with gcov. This requires turning...
I'm implementing a view for displaying tabular information with 2 axis, but I'm starting to run into performance issues with rendering all the cells.
The view looks something like this:
+------------+-------------+------------+------------+------------+
| | 12.00am | 1.00am | 2.00am | 3.00am |
+------------+-...
Hi,
I am trying to add badges to the icons in my app. e.g. in the facebook app, in the home page the number of pending requests is shown on the requests icon.
Can someone provide any links/ideas on how to do this?
Thanks,
V
...
Is it possible to have text go around an image ? like in the picture?
...
How to declare and use global variable with extern in Objective C and other files.
I want to define and assign the global variable in 1.h file and 1.m and want to use that in 2.m file
I am defining
1.h
extern const NSString *str;
1.m
NSString *str=@"HELLO";
in 2.m I am importing the 1.h
want to access str but giving me 2.o err...
Hi there,
Still an iphone dev starter but trying.
I would like to have the user touch the screen at which point a pin (dot) will be placed on the view.
I have accomplished this (yey) but i would like to have snap to grip effect, and can not come up with a solution.
This is how i am placing that dot:
CGPoint drawPoint = CGPointMak...
Hello,
I want to programmatically initialise my tabBarController to the last tab selected by the user. This works OK for my standard tabs, but if the uwer was on the "more" tab, I cannot figure out how to initialise it as this tab doesn't (to my knowledge) have an index).
Is anyone aware of a way of doing this?
...
Helllo,
i would like to show Content in the UIWebView,
which i have added to the Project.
for example an image.
I know how to set a text in the UIWebView, but i would like to add images or a video which i have added to the project
best regards,
...
Hello everyone
I have a UITableView with footer view. This footer view contains a UITextView as a subview. Both the table view and footer view are created programmatically. The text view appears on screen correctly, but it doesn't display any text, nor does it respond to touch events.
Could the problem be related to the fact that UITex...
I have been working on an iPhone App for a couple of weeks now and one of the earlier features I added was a UIWebView that loaded context sensitive Wikipedia page topics. This was pretty trivial to implement and has been working fine for some time.
Today, I found that functionality had unexpectedly stopped working. I had been fiddli...
Hello
Can someone tell me, where to find a detailed guide, how to build the Boost-Libraries for using it on the iPhone-Device.
I've allready build the libs for Mac and can use them in my project (only on iPhone-Simulator). While building the project for iPhone-Device, XCode haunts me a warning: "file is not of required architecture" on...
Hi all,
This is the following piece of code from WiTap,
- (void) send:(const uint8_t)message
{
if (_outStream && [_outStream hasSpaceAvailable])
if([_outStream write:(const uint8_t *)&message maxLength:sizeof(const uint8_t)] == -1)
[self _showAlert:@"Failed sending data to peer"];
}
- (void) activateView:(Tap...
I have an application that connects fine over http. When trying https I got the error that says that the root cert is not trusted. I found URLs for my site certificate, its CA certificate, and the CA's root certificate and have added them through Safari to the phone. Now when I go to Preferences -> General -> Profiles I can see all my...
I want to use MKMapView with UITabbarController. I havent any problems with other viewController application. But if i use MKMapView with UITabBarController, MKMapView IBOutlet throws NSUnknownKeyException with message "this class is not key value coding-compliant for the key xxxx"
If i delete IBOutlet from my code and IB then applicatio...
OK i am really struggling with this!
I know had to add an image to the view, i know how to record a touch event. But combining the two is proving to be an issue.
There are lots of tutorials out there on how to move an image with touch events.
But Could anyone suggest how i might complete the following:
Add an image to the view on t...