Hi there,
I want to create a text field with some text, that is styled with tags. Think of MS Word, some ext is bold, some is a headline, etc. The tags that style the text are not visible to the user, he just sees the text in bold.
How do I preserve these tags? I mean when I backspace over the closing bold-tag, for example, how do I pr...
For some reason, the CGSize which is returned by sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: is pretty useless. In my case it remains 55 no matter how much the text gets shrinked. It's always the same value. It never changes. The only thing that seems to work is the actualFontSize but that doesn't tell me a lot about ...
I know there is this one:
sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode:
But since the CGSize always has the same height and doesn't adjust to any shrinked text or whatsoever, the CGSize is not telling how heigh the text is.
Example: Make a UILabel with 320 x 55 points and put a loooooooooooooong text in there. Let t...
I have used MFMailComposeViewController class in my iPhone app for email functionality.When I try to fill email body keypad comes.Here How can I use resignFirstResponder for that email body textfiled in MFMailComposeViewController class...
...
Hi! Need to create blurred shadow under UILabel. Same text but with blur and offset. Since NSShadow not supported in the iPhone SDK only way I see is Quartz render. Is there simpliest solution ?
Thanks
...
I was wondering if anyone could point me to (or paste in) some code to deal with turning off Core Location updates to save power.
As far as I understand it, you should stop Core Location updates as soon as you get a reading of desired accuracy. If you don't get a good accuracy reading after a certain time, you should also stop updates (...
Hi all,
I want to use mobile substrate to "hook" some code into IPhone's "MobileCal" app so that the injected code will send a notification to my app MobileCal gets a call notification. But I'm out of luck and no clue which method need to be replaced by my "hooking" method in the "MobileCal" app.
For example, the "MobileLog" and "iReal...
Summary: how do i get the amplitude of each sample using the default aurioTouch code.
in Depth: The aurioTouch seems to be setup well for what i need, i need to be sampling at 44.1Khz and then taking the amplitude values from these and applying a small filter i have written to detect an event. I know this should go in the PerformThru ca...
How to create a pop up animation on iPhone? I want show my uiview as a popup view, like uialertview design.
...
For some reason the compiler gives me a warning that my category methods may not be there (like "foobar may not respond to doFoo"). However, the category works.
...
I have a custom class that is used as a wrapper to an NSMutableArray
@interface AllCourses : NSObject {
NSMutableArray *arrClasses;
}
The array above stores Objects of another custom class.
@interface Course : NSObject {
NSString *className;
NSString *classGrade;
NSInteger creditHours;
}
I use the method below to add Course obje...
Hello everyone
I hope to delete all rows of an UITablewView
The UITableView is "atableview", its data source is "fileArray".
NSMutableArray *fileArray;
fileArray is NSMutableArray for object MYFileObj
#import <UIKit/UIKit.h>
NSMutableArray *fileArray;
@interface MYFileObj : NSObject {
NSString *fileName;
}
-(void) setFileName:...
So I'm brand new to rest's API and have never used an API ever before. I'm ok with Objective-C and Cocoa Touch but just have no clue where to start when accessing the API and how to in general. Can someone help me get started with some code that will access titles in rest or just how to access a REST API in general with authentication. T...
Is there any common way to decompose an expression created by [NSPredicate predicateWithFormat] to objects NSComprasionPredicate, NSExpression and other?
For below example need to disassemble into components.
[NSPredicate predicateWithFormat:@"(0 != SUBQUERY(collection, $x, $x.name == "Name").@Count)"];
...
Hi all
can we make virtual keyboard always on,???
any code snippet?
regards
shishir
...
Hi,
I created a custom UIButton like this
@interface CustomButton : UIButton {
NSString *firstLine;
NSString *secondLine;
}
@property (nonatomic, retain) NSString *firstLine;
@property (nonatomic, retain) NSString *secondLine;
@end
CustomButton* rightButton = [CustomButton buttonWithType:UIButtonTypeDetailDisclosure];
rightB...
I have iPhone (iPhoneOS 3.x) OpenGL ES app that:
can be in landscape/portrait orientation
can be with/without status bar shown
I do this by changing status bar orientation and hidden state, then updating OpenGL view frame so it won't overlap status bar and setting projection matrix appropriately.
OpenGL view is in portrait ori...
I've just setup a Google Analytics for Mobile Apps account and I've implemented the SDK in my iPhone app with no trouble at all. However, I haven't figured out how to manage multiple apps with one account. It seems fairly easy to setup multiple subdomains when dealing with websites and I've noticed the javascript code has a setSubdomain ...
We are a developing an application which is supposed to play long audio files. duration of audio file can be upto 23 hours...
we are trying to use this AVAuidoPlayer for this purpose. To perform fast forward we are setting CurrentTime property of AVAudioPlayer. if the forward duration is just few minutes or even upto 20 minutes everythi...
I've got the following html form:
<form method="post" action="http://shk.ecomd.de/up.php" enctype="multipart/form-data">
<input type="hidden" name="id" value="12345" />
<input type="file" name="pic" />
<input type="submit" />
</form>
And the following iPhone SDK Submit method:
- (void)sendfile {
UIImage *tempImage = [UIImage imageN...