Hi guys today we are going to work on some UIImageView animation we can apply this animation on UIView or any subclass of UIView. First of all we create a new project
You will have to add UIView+Explode these files in your project. These files are Created by Daniel Tavares and i found in a source code.
Now you just have to
- Make a block
- Create an ImageView
- Assign Image to Image View
- Animate on a tap gesture
self.userInteractionEnabled = YES;
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapped:)];
- Call [weakSelf lp_explode];
Now you may download the complete project for better understanding click here
This post is just to let you guys know how to create a new project in Xcode 4.x. So First of all open the Xcode from your Applications folder or search “Xcode” in spotlight. When xcode is opened now you have to follow these steps
- Click on “File” available in the top bar of your screen
- Go on first line “New” and then select project
- A window will open with some options
- Select any templete according your requirements but ion most cases we select “Single View” and customise it according our own requirements.
- Select a suitable name for your project and then click on “Next” according the following image
- Select a suitable place for your project and click on create.
- If you want to create a local git repository for this project then Check “Create local git repository for this project ” and then click on create.
and you are done with it. You have created a new project successfully. Happing coding and Mind Your Code
UIWebView, HI Guys today we are going to explore UIWebView. We will see how we can access the text or contents in a UIWebView. In this regards we’ll find some word in the given text in an html and will highlight those words otherwise an alert “No Match found” will be shown.
First of all we will create a new project with a single view named “FindInWebView”.
2nd step is to add a new UIwebView in view of our ViewController.
connect this web view with an IBOutlet named “myWebView”.
ARC (Automatic Reference Counting) was introduced in iOS 5.0 SDK.
Although there is no difference in the execution of an ARC program and a well written MRC (Manual Reference Counting), it is good to use ARC if it is annoying for you to manually keep track of reference counting of objects that you create. On other hand using ARC also decreases your line of code count.
But leaving all the advantages or disadvantages aside, during your iOS development experience you may fell into a situation when you want to enable or disable ARC base compilation for one or more files in a project but not the complete project.
You don’t have to do any hack for this just simply
1 – Go to TARGETS.
2 – Select Build Phases.
3 – Click the small arrow left to the text Compile Sources. It will open up list of all the .m files of your project.
4 – Double click the file name for which you want to enable ARC and just write this flag -fobjc-arc and you are done.
Likewise if you want to disable ARC for any file just write the flag -fno-objc-arc then this file will be compiled as a MRC file.
This images summarises the whole story in a single short.
Now keep enjoying ARC and Mind You Code.
Classic Asp is kind of old fashioned or even a historical language for some folks but if you are a part of a team which is responsible for maintenance of a huge application, you have to live with Classic Asp and its limitations. Because Asp is a server side language so we have to enable Server side debugging from IIS.
There are different techniques used for debugging classic Asp code. Let’s take a look of them.
Writing Debug Messages
It is the most basic, easy but childish way of debugging classic Asp. You use Response object and print values of your desired variables all over the page.
It won’t allow you to step into DLL files for obvious reasons, but I am sure it’s more efficient than writing debug messages to diagnose the issues.
Here is a small process of using this technique.
- First of all, check if you have enabled server side debugging from IIS. If you haven’t then just do it by having a look as above screen shot displays.
- Create a macro by choosing View->Other Windows->Macro Explorer.
- Record a new Macro and paste the hooking code in the body of this macro.
- Save the macro.
- Hookup the debugger with IIS by opening a Browser and open any .asp page. This will load the iisprocess in the memory.
- Run your macro, it will automatically hook with this process in memory.
- Now open the asp page you want to debug.
- Set a Break Point in the code (in active tags ofcourse
- Browse to your page and it will automatically break at the break-point!
hooking code goes here
Dim os As System.Version = System.Environment.OSVersion.Version
Dim IISProcess As String = "w3wp.exe"
If os.Major = 5 And os.Minor < 2 Then
IISProcess = "dllhost.exe"
Dim processFound As Boolean = False
Dim process As EnvDTE80.Process2
For Each process In DTE.Debugger.LocalProcesses
'Determine if the process could the IIS worker process
Dim processName As String = process.Name.ToLowerInvariant()
Dim processBaseName As String = System.IO.Path.GetFileName(processName)
If Not processBaseName = IISProcess Then
If Not processBaseName = "inetinfo.exe" Then
'Determine if the process contains asp.dll
Dim aspLoaded As Boolean = False
Dim diagProcess As System.Diagnostics.Process = System.Diagnostics.Process.GetProcessById(process.ProcessID)
Dim diagModule As System.Diagnostics.ProcessModule
For Each diagModule In diagProcess.Modules
Dim moduleName As String = System.IO.Path.GetFileName(diagModule.FileName).ToLowerInvariant()
If moduleName = "asp.dll" Then
aspLoaded = True
'If the process contains asp.dll, attach to it
If aspLoaded Then
processFound = True
If Not processFound Then
MsgBox("Could not find this IIS process. Hit a web page containing classic ASP script so that the process will start.")
Catch ex As System.Exception
Cheers and Happy Coding